E - public class ImmutableSet<E> extends ImmutableCollection<E> implements Set<E>
| Modifier and Type | Method and Description |
|---|---|
static <E> ImmutableSet<E> |
copyOf(Collection<? extends E> set) |
static <E> ImmutableSet<E> |
empty() |
static <E> ImmutableSet<E> |
just(E e) |
static <E> ImmutableCollection<E> |
of(Collection<? extends E> c)
Deprecated.
throws
UnsupportedOperationException |
static <E> ImmutableSet<E> |
of(E... a) |
static <E> ImmutableSet<E> |
of(E e) |
static <E> ImmutableSet<E> |
of(Set<? extends E> set) |
add, addAll, clear, contains, equals, hashCode, iterator, remove, removeAll, retainAll, size, toArray, toArray, toStringcontainsAll, isEmptyadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArrayparallelStream, removeIf, streampublic static <E> ImmutableSet<E> empty()
E - public static <E> ImmutableSet<E> just(E e)
E - e - public static <E> ImmutableSet<E> of(E e)
E - e - @SafeVarargs public static <E> ImmutableSet<E> of(E... a)
E - a - public static <E> ImmutableSet<E> of(Set<? extends E> set)
E - set - the elements in this Set are shared by the returned ImmutableSet.public static <E> ImmutableSet<E> copyOf(Collection<? extends E> set)
E - set - @Deprecated public static <E> ImmutableCollection<E> of(Collection<? extends E> c) throws UnsupportedOperationException
UnsupportedOperationExceptionE - c - UnsupportedOperationExceptionCopyright © 2021. All rights reserved.