Example usage for Java com.google.common.collect ImmutableSet fields, constructors, methods, implement or subclass
The text is from its open source code.
Builder | builder() |
boolean | contains(Object o) Returns true if this set contains the specified element. |
boolean | containsAll(Collection> c) Returns true if this set contains all of the elements of the specified collection. |
ImmutableSet | copyOf(E[] elements) |
ImmutableSet | copyOf(Collection extends E> elements) |
ImmutableSet | copyOf(Iterable extends E> elements) |
ImmutableSet | copyOf(Iterator extends E> elements) |
boolean | equals(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. |
int | hashCode() |
boolean | isEmpty() Returns true if this set contains no elements. |
Iterator | iterator() Returns an iterator over the elements in this set. |
ImmutableSet | of(E e1, E e2) |
ImmutableSet | of() |
ImmutableSet | of(E element) |
ImmutableSet | of(E e1, E e2, E e3, E e4) |
ImmutableSet | of(E e1, E e2, E e3) |
ImmutableSet | of(E e1, E e2, E e3, E e4, E e5, E e6, E... others) |
ImmutableSet | of(E e1, E e2, E e3, E e4, E e5) |
Set | of(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9) Returns an unmodifiable set containing nine elements. |
Set | of(E e1, E e2, E e3, E e4, E e5, E e6) Returns an unmodifiable set containing six elements. |
Set | of(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8) Returns an unmodifiable set containing eight elements. |
Set | of(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9, E e10) Returns an unmodifiable set containing ten elements. |
int | size() Returns the number of elements in this set (its cardinality). |
Stream | stream() Returns a sequential Stream with this collection as its source. |
T[] | toArray(T[] a) Returns an array containing all of the elements in this set; the runtime type of the returned array is that of the specified array. |
String | toString() Returns a string representation of the object. |