Lines Matching defs:ImmutableList

35  * GWT emulated version of {@link ImmutableList}.
40 public abstract class ImmutableList<E> extends ForwardingImmutableCollection<E>
45 ImmutableList(List<E> delegate) {
50 ImmutableList() {
56 public static <E> ImmutableList<E> of() {
57 return (ImmutableList<E>) EmptyImmutableList.INSTANCE;
60 public static <E> ImmutableList<E> of(E element) {
64 public static <E> ImmutableList<E> of(E e1, E e2) {
66 ImmutableList.<E>nullCheckedList(e1, e2));
69 public static <E> ImmutableList<E> of(E e1, E e2, E e3) {
71 ImmutableList.<E>nullCheckedList(e1, e2, e3));
74 public static <E> ImmutableList<E> of(E e1, E e2, E e3, E e4) {
76 ImmutableList.<E>nullCheckedList(e1, e2, e3, e4));
79 public static <E> ImmutableList<E> of(E e1, E e2, E e3, E e4, E e5) {
81 ImmutableList.<E>nullCheckedList(e1, e2, e3, e4, e5));
84 public static <E> ImmutableList<E> of(E e1, E e2, E e3, E e4, E e5, E e6) {
86 ImmutableList.<E>nullCheckedList(e1, e2, e3, e4, e5, e6));
89 public static <E> ImmutableList<E> of(
92 ImmutableList.<E>nullCheckedList(e1, e2, e3, e4, e5, e6, e7));
95 public static <E> ImmutableList<E> of(
98 ImmutableList.<E>nullCheckedList(e1, e2, e3, e4, e5, e6, e7, e8));
101 public static <E> ImmutableList<E> of(
104 ImmutableList.<E>nullCheckedList(e1, e2, e3, e4, e5, e6, e7, e8, e9));
107 public static <E> ImmutableList<E> of(
109 return new RegularImmutableList<E>(ImmutableList.<E>nullCheckedList(
113 public static <E> ImmutableList<E> of(
115 return new RegularImmutableList<E>(ImmutableList.<E>nullCheckedList(
119 public static <E> ImmutableList<E> of(
126 return new RegularImmutableList<E>(ImmutableList.<E>nullCheckedList(array));
129 public static <E> ImmutableList<E> of(E[] elements) {
133 return ImmutableList.of();
138 ImmutableList.<E>nullCheckedList(elements));
146 public static <E> ImmutableList<E> copyOf(Iterable<? extends E> elements) {
153 public static <E> ImmutableList<E> copyOf(Iterator<? extends E> elements) {
157 public static <E> ImmutableList<E> copyOf(Collection<? extends E> elements) {
160 * TODO: When given an ImmutableList that's a sublist, copy the referenced
170 public static <E> ImmutableList<E> copyOf(E[] elements) {
175 private static <E> ImmutableList<E> copyFromCollection(
183 ImmutableList<E> list = new SingletonImmutableList<E>((E) elements[0]);
186 return new RegularImmutableList<E>(ImmutableList.<E>nullCheckedList(elements));
192 static <E> ImmutableList<E> unsafeDelegateList(List<? extends E> list) {
205 static <E> ImmutableList<E> backedBy(E[] elements) {
248 public ImmutableList<E> subList(int fromIndex, int toIndex) {
260 @Override public ImmutableList<E> asList() {
264 public ImmutableList<E> reverse(){
314 @Override public ImmutableList<E> build() {