Interface MutableIntListFactory
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 TypeMethodDescriptionempty()of()Same asempty().of(int... items) Same aswith(int[]).Same aswithAll(Iterable).ofAll(IntIterable items) Same aswithAll(IntIterable).with()Same asempty().with(int... items) Creates a new list using the passeditemsargument as the backing store.withAll(IntIterable items) default MutableIntListwithInitialCapacity(int capacity) Same asempty(). but takes in an initial capacitydefault MutableIntListwrapCopy(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 passeditemsargument 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
-