MutableSetFactory
@Immutable public final class MutableSetFactoryImpl extends Object implements MutableSetFactory
Constructor | Description |
---|---|
MutableSetFactoryImpl() |
Modifier and Type | Method | Description |
---|---|---|
<T> MutableSet<T> |
empty() |
|
<T> MutableSet<T> |
of() |
Same as
MutableSetFactory.empty() . |
<T> MutableSet<T> |
of(T... items) |
Same as
MutableSetFactory.with(Object[]) . |
<T> MutableSet<T> |
ofAll(Iterable<? extends T> items) |
Same as
MutableSetFactory.withAll(Iterable) . |
<T> MutableSet<T> |
ofInitialCapacity(int capacity) |
Same as
MutableSetFactory.empty() . |
<T> MutableSet<T> |
with() |
Same as
MutableSetFactory.empty() . |
<T> MutableSet<T> |
with(T... items) |
|
<T> MutableSet<T> |
withAll(Iterable<? extends T> items) |
|
<T> MutableSet<T> |
withInitialCapacity(int capacity) |
Same as
MutableSetFactory.empty() . |
public <T> MutableSet<T> empty()
empty
in interface MutableSetFactory
public <T> MutableSet<T> of()
MutableSetFactory
MutableSetFactory.empty()
.of
in interface MutableSetFactory
public <T> MutableSet<T> with()
MutableSetFactory
MutableSetFactory.empty()
.with
in interface MutableSetFactory
public <T> MutableSet<T> ofInitialCapacity(int capacity)
MutableSetFactory
MutableSetFactory.empty()
. but takes in initial capacity.ofInitialCapacity
in interface MutableSetFactory
public <T> MutableSet<T> withInitialCapacity(int capacity)
MutableSetFactory
MutableSetFactory.empty()
. but takes in initial capacity.withInitialCapacity
in interface MutableSetFactory
public <T> MutableSet<T> of(T... items)
MutableSetFactory
MutableSetFactory.with(Object[])
.of
in interface MutableSetFactory
public <T> MutableSet<T> with(T... items)
with
in interface MutableSetFactory
public <T> MutableSet<T> ofAll(Iterable<? extends T> items)
MutableSetFactory
MutableSetFactory.withAll(Iterable)
.ofAll
in interface MutableSetFactory
public <T> MutableSet<T> withAll(Iterable<? extends T> items)
withAll
in interface MutableSetFactory
Copyright © 2004–2017. All rights reserved.