Interface MutableShortListFactory
public interface MutableShortListFactory
A factory which creates instances of type
MutableShortList.
This file was automatically generated from template file mutablePrimitiveListFactory.stg.- Since:
- 6.0.
-
Method Summary
Modifier and TypeMethodDescriptionempty()of()Same asempty().of(short... items) Same aswith(short[]).Same aswithAll(Iterable).ofAll(ShortIterable items) Same aswithAll(ShortIterable).with()Same asempty().with(short... items) Creates a new list using the passeditemsargument as the backing store.withAll(ShortIterable items) default MutableShortListwithInitialCapacity(int capacity) Same asempty(). but takes in an initial capacitydefault MutableShortListwrapCopy(short... array) Creates a new list by first copying the array passed in.
-
Method Details
-
empty
MutableShortList empty() -
of
MutableShortList of()Same asempty(). -
with
MutableShortList with()Same asempty(). -
withInitialCapacity
Same asempty(). but takes in an initial capacity- Since:
- 10.3
-
of
Same aswith(short[]). -
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(ShortIterable). -
withAll
-
ofAll
Same aswithAll(Iterable). -
withAll
-