MutableSetFactoryImpl
public interface MutableSetFactory
Modifier and Type | Method | Description |
---|---|---|
<T> MutableSet<T> |
empty() |
|
<T> MutableSet<T> |
fromStream(Stream<? extends T> stream) |
|
default <T> MutableSet<T> |
of() |
Same as
empty() . |
default <T> MutableSet<T> |
of(T... items) |
Same as
with(Object[]) . |
default <T> MutableSet<T> |
ofAll(Iterable<? extends T> items) |
Same as
withAll(Iterable) . |
default <T> MutableSet<T> |
ofInitialCapacity(int capacity) |
Same as
empty() . |
default <T> MutableSet<T> |
with() |
Same as
empty() . |
<T> MutableSet<T> |
with(T... items) |
|
<T> MutableSet<T> |
withAll(Iterable<? extends T> items) |
|
<T> MutableSet<T> |
withInitialCapacity(int capacity) |
Same as
empty() . |
<T> MutableSet<T> empty()
default <T> MutableSet<T> of()
empty()
.default <T> MutableSet<T> with()
empty()
.default <T> MutableSet<T> of(T... items)
with(Object[])
.<T> MutableSet<T> with(T... items)
default <T> MutableSet<T> ofInitialCapacity(int capacity)
empty()
. but takes in initial capacity.<T> MutableSet<T> withInitialCapacity(int capacity)
empty()
. but takes in initial capacity.default <T> MutableSet<T> ofAll(Iterable<? extends T> items)
withAll(Iterable)
.<T> MutableSet<T> withAll(Iterable<? extends T> items)
<T> MutableSet<T> fromStream(Stream<? extends T> stream)
Copyright © 2004–2019. All rights reserved.