Interface MutableShortListFactory
-
- All Known Implementing Classes:
MutableShortListFactoryImpl
public interface MutableShortListFactory
A factory which creates instances of typeMutableShortList
. 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 MutableShortList
empty()
MutableShortList
of()
Same asempty()
.MutableShortList
of(short... items)
Same aswith(short[])
.MutableShortList
ofAll(java.lang.Iterable<java.lang.Short> iterable)
Same aswithAll(Iterable)
.MutableShortList
ofAll(ShortIterable items)
Same aswithAll(ShortIterable)
.MutableShortList
with()
Same asempty()
.MutableShortList
with(short... items)
Creates a new list using the passeditems
argument as the backing store.MutableShortList
withAll(java.lang.Iterable<java.lang.Short> iterable)
MutableShortList
withAll(ShortIterable items)
default MutableShortList
withInitialCapacity(int capacity)
Same asempty()
.default MutableShortList
wrapCopy(short... array)
Creates a new list by first copying the array passed in.
-
-
-
Method Detail
-
empty
MutableShortList empty()
-
of
MutableShortList of()
Same asempty()
.
-
with
MutableShortList with()
Same asempty()
.
-
withInitialCapacity
default MutableShortList withInitialCapacity(int capacity)
Same asempty()
. but takes in an initial capacity- Since:
- 10.3
-
of
MutableShortList of(short... items)
Same aswith(short[])
.
-
with
MutableShortList with(short... 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 MutableShortList wrapCopy(short... array)
Creates a new list by first copying the array passed in.
-
ofAll
MutableShortList ofAll(ShortIterable items)
Same aswithAll(ShortIterable)
.
-
withAll
MutableShortList withAll(ShortIterable items)
-
ofAll
MutableShortList ofAll(java.lang.Iterable<java.lang.Short> iterable)
Same aswithAll(Iterable)
.
-
withAll
MutableShortList withAll(java.lang.Iterable<java.lang.Short> iterable)
-
-