public class MutableSetFactoryImpl extends Object implements MutableSetFactory
| Modifier and Type | Field and Description |
|---|---|
static MutableSetFactory |
INSTANCE |
| Constructor and Description |
|---|
MutableSetFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
<T> MutableSet<T> |
empty() |
<T> MutableSet<T> |
fromStream(Stream<? extends T> stream) |
<T> MutableSet<T> |
with(T... items) |
<T> MutableSet<T> |
withAll(Iterable<? extends T> items) |
<T> MutableSet<T> |
withInitialCapacity(int capacity) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitof, of, ofAll, ofInitialCapacity, withpublic static final MutableSetFactory INSTANCE
public <T> MutableSet<T> empty()
empty in interface MutableSetFactorypublic <T> MutableSet<T> withInitialCapacity(int capacity)
withInitialCapacity in interface MutableSetFactorypublic <T> MutableSet<T> with(T... items)
with in interface MutableSetFactorypublic <T> MutableSet<T> withAll(Iterable<? extends T> items)
withAll in interface MutableSetFactorypublic <T> MutableSet<T> fromStream(Stream<? extends T> stream)
fromStream in interface MutableSetFactoryCopyright © 2004–2022. All rights reserved.