Example usage for Java com.google.common.collect ImmutableList fields, constructors, methods, implement or subclass
The text is from its open source code.
ImmutableList | asList() |
Builder | builder() |
boolean | contains(Object o) Returns true if this list contains the specified element. |
boolean | containsAll(Collection> c) Returns true if this list contains all of the elements of the specified collection. |
ImmutableList | copyOf(Iterable extends E> elements) |
ImmutableList | copyOf(Iterator extends E> elements) |
ImmutableList | copyOf(Collection extends E> elements) |
ImmutableList | copyOf(E[] elements) |
boolean | equals(@Nullable Object obj) |
void | forEach(Consumer super T> action) Performs the given action for each element of the Iterable until all elements have been processed or the action throws an exception. |
E | get(int index) Returns the element at the specified position in this list. |
int | hashCode() |
int | indexOf(@Nullable Object object) |
boolean | isEmpty() Returns true if this list contains no elements. |
UnmodifiableIterator | iterator() |
UnmodifiableListIterator | listIterator(int index) |
ImmutableList | of(E element) |
ImmutableList | of(E e1, E e2, E e3, E e4, E e5, E e6) |
ImmutableList | of(E e1, E e2) |
ImmutableList | of() |
ImmutableList | of(E e1, E e2, E e3, E e4, E e5) |
ImmutableList | of(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9, E e10) |
ImmutableList | of(E e1, E e2, E e3) |
ImmutableList | of(E e1, E e2, E e3, E e4) |
ImmutableList | of(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8) |
ImmutableList | of(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9, E e10, E e11, E e12, E... others) |
ImmutableList | of(E e1, E e2, E e3, E e4, E e5, E e6, E e7) |
ImmutableList | of(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9) |
ImmutableList | of(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9, E e10, E e11) |
Stream | parallelStream() Returns a possibly parallel Stream with this collection as its source. |
ImmutableList | reverse() |
int | size() Returns the number of elements in this list. |
Stream | stream() Returns a sequential Stream with this collection as its source. |
ImmutableList | subList(int fromIndex, int toIndex) |
T[] | toArray(T[] a) Returns an array containing all of the elements in this list in proper sequence (from first to last element); the runtime type of the returned array is that of the specified array. |
Object[] | toArray() Returns an array containing all of the elements in this list in proper sequence (from first to last element). |
String | toString() Returns a string representation of the object. |