MutableListFactoryImpl
public interface MutableListFactory
Modifier and Type | Method | Description |
---|---|---|
<T> MutableList<T> |
empty() |
|
<T> MutableList<T> |
fromStream(java.util.stream.Stream<? extends T> stream) |
|
default <T> MutableList<T> |
of() |
Same as
empty() . |
default <T> MutableList<T> |
of(T... items) |
Same as
with(Object[]) . |
default <T> MutableList<T> |
ofAll(java.lang.Iterable<? extends T> iterable) |
Same as
withAll(Iterable) . |
default <T> MutableList<T> |
ofInitialCapacity(int capacity) |
Same as
empty() . |
default <T> MutableList<T> |
with() |
Same as
empty() . |
<T> MutableList<T> |
with(T... items) |
|
<T> MutableList<T> |
withAll(java.lang.Iterable<? extends T> iterable) |
|
<T> MutableList<T> |
withInitialCapacity(int capacity) |
Same as
empty() . |
<T> MutableList<T> |
withNValues(int size,
Function0<? extends T> factory) |
<T> MutableList<T> empty()
default <T> MutableList<T> of()
empty()
.default <T> MutableList<T> with()
empty()
.default <T> MutableList<T> of(T... items)
with(Object[])
.<T> MutableList<T> with(T... items)
default <T> MutableList<T> ofInitialCapacity(int capacity)
empty()
. but takes in initial capacity.<T> MutableList<T> withInitialCapacity(int capacity)
empty()
. but takes in initial capacity.default <T> MutableList<T> ofAll(java.lang.Iterable<? extends T> iterable)
withAll(Iterable)
.<T> MutableList<T> withAll(java.lang.Iterable<? extends T> iterable)
<T> MutableList<T> fromStream(java.util.stream.Stream<? extends T> stream)
<T> MutableList<T> withNValues(int size, Function0<? extends T> factory)
Copyright © 2004–2020. All rights reserved.