E
- the element typepublic interface ImmutableSet<E> extends Set<E>
Modifier and Type | Method and Description |
---|---|
ImmutableSet<E> |
added(E e) |
static <E> ImmutableSet<E> |
empty() |
ImmutableSet<E> |
removed(E e) |
static <E> ImmutableSet<E> |
singleton(E e) |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArray
parallelStream, removeIf, stream
static <E> ImmutableSet<E> empty()
E
- the element typestatic <E> ImmutableSet<E> singleton(E e)
E
- the element typee
- the elementImmutableSet<E> added(E e)
e
- the elementImmutableSet<E> removed(E e)
e
- the element