java.lang.Object
org.maxicp.util.ImmutableSet<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>,Set<E>
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends E> c) static <E> ImmutableSet.Builder<E> builder()voidclear()booleanbooleancontainsAll(Collection<?> c) booleanisEmpty()iterator()static ImmutableSet<Integer> of(int... ints) static <X> ImmutableSet<X> of(Collection<X> x) static <X> ImmutableSet<X> of(X... x) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()Object[]toArray()<T> T[]toArray(T[] a) static <E> Collector<E, ?, ImmutableSet<E>> Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Set
equals, hashCode, spliterator
-
Constructor Details
-
ImmutableSet
-
ImmutableSet
-
-
Method Details
-
of
-
of
-
of
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
public <T> T[] toArray(T[] a) -
add
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceSet<E>
-
addAll
-
retainAll
-
removeAll
-
clear
public void clear() -
toImmutableSet
-
builder
-