Interface MutableIntListFactory
-
- All Known Implementing Classes:
MutableIntListFactoryImpl
public interface MutableIntListFactory
A factory which creates instances of typeMutableIntList
. This file was automatically generated from template file mutablePrimitiveListFactory.stg.- Since:
- 6.0.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description MutableIntList
empty()
MutableIntList
of()
Same asempty()
.MutableIntList
of(int... items)
Same aswith(int[])
.MutableIntList
ofAll(java.lang.Iterable<java.lang.Integer> iterable)
Same aswithAll(Iterable)
.MutableIntList
ofAll(java.util.stream.IntStream items)
MutableIntList
ofAll(IntIterable items)
Same aswithAll(IntIterable)
.MutableIntList
with()
Same asempty()
.MutableIntList
with(int... items)
Creates a new list using the passeditems
argument as the backing store.MutableIntList
withAll(java.lang.Iterable<java.lang.Integer> iterable)
MutableIntList
withAll(java.util.stream.IntStream items)
MutableIntList
withAll(IntIterable items)
default MutableIntList
withInitialCapacity(int capacity)
Same asempty()
.default MutableIntList
wrapCopy(int... array)
Creates a new list by first copying the array passed in.
-
-
-
Method Detail
-
empty
MutableIntList empty()
-
of
MutableIntList of()
Same asempty()
.
-
with
MutableIntList with()
Same asempty()
.
-
withInitialCapacity
default MutableIntList withInitialCapacity(int capacity)
Same asempty()
. but takes in an initial capacity- Since:
- 10.3
-
of
MutableIntList of(int... items)
Same aswith(int[])
.
-
with
MutableIntList with(int... items)
Creates a new list using the passeditems
argument as the backing store.!!! WARNING: This method uses the passed in array, so can be very unsafe if the original array is held onto anywhere else. !!!
-
wrapCopy
default MutableIntList wrapCopy(int... array)
Creates a new list by first copying the array passed in.
-
ofAll
MutableIntList ofAll(IntIterable items)
Same aswithAll(IntIterable)
.
-
withAll
MutableIntList withAll(IntIterable items)
-
ofAll
MutableIntList ofAll(java.lang.Iterable<java.lang.Integer> iterable)
Same aswithAll(Iterable)
.
-
withAll
MutableIntList withAll(java.lang.Iterable<java.lang.Integer> iterable)
-
ofAll
MutableIntList ofAll(java.util.stream.IntStream items)
- Since:
- 9.0
-
withAll
MutableIntList withAll(java.util.stream.IntStream items)
- Since:
- 9.0
-
-