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, removeIf, retainAll, size, streamm, toArray, toArray, toString
containsAll, isEmpty
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArray
parallelStream, removeIf, stream
public 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
UnsupportedOperationException
E
- c
- UnsupportedOperationException
Copyright © 2020. All rights reserved.