Interface MutableIntListFactory
- All Known Implementing Classes:
MutableIntListFactoryImpl
public interface MutableIntListFactory
A factory which creates instances of type
MutableIntList
.
This file was automatically generated from template file mutablePrimitiveListFactory.stg.- Since:
- 6.0.
-
Method Summary
Modifier and Type Method Description MutableIntList
empty()
MutableIntList
of()
Same asempty()
.MutableIntList
of(int... items)
Same aswith(int[])
.MutableIntList
ofAll(Iterable<Integer> iterable)
Same aswithAll(Iterable)
.MutableIntList
ofAll(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(Iterable<Integer> iterable)
MutableIntList
withAll(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 Details
-
empty
MutableIntList empty() -
of
MutableIntList of()Same asempty()
. -
with
MutableIntList with()Same asempty()
. -
withInitialCapacity
Same asempty()
. but takes in an initial capacity- Since:
- 10.3
-
of
Same aswith(int[])
. -
with
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
Creates a new list by first copying the array passed in. -
ofAll
Same aswithAll(IntIterable)
. -
withAll
-
ofAll
Same aswithAll(Iterable)
. -
withAll
-
ofAll
- Since:
- 9.0
-
withAll
- Since:
- 9.0
-