Interface MutableLongListFactory
- All Known Implementing Classes:
MutableLongListFactoryImpl
public interface MutableLongListFactory
A factory which creates instances of type
MutableLongList
.
This file was automatically generated from template file mutablePrimitiveListFactory.stg.- Since:
- 6.0.
-
Method Summary
Modifier and TypeMethodDescriptionempty()
of()
Same asempty()
.of
(long... items) Same aswith(long[])
.Same aswithAll(Iterable)
.ofAll
(LongStream items) ofAll
(LongIterable items) Same aswithAll(LongIterable)
.with()
Same asempty()
.with
(long... items) Creates a new list using the passeditems
argument as the backing store.withAll
(LongStream items) withAll
(LongIterable items) default MutableLongList
withInitialCapacity
(int capacity) Same asempty()
.default MutableLongList
wrapCopy
(long... array) Creates a new list by first copying the array passed in.
-
Method Details
-
empty
MutableLongList empty() -
of
MutableLongList of()Same asempty()
. -
with
MutableLongList with()Same asempty()
. -
withInitialCapacity
Same asempty()
. but takes in an initial capacity- Since:
- 10.3
-
of
Same aswith(long[])
. -
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(LongIterable)
. -
withAll
-
ofAll
Same aswithAll(Iterable)
. -
withAll
-
ofAll
- Since:
- 9.0
-
withAll
- Since:
- 9.0
-