Interface MutableLongListFactory
-
- All Known Implementing Classes:
MutableLongListFactoryImpl
public interface MutableLongListFactory
A factory which creates instances of typeMutableLongList
. 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 MutableLongList
empty()
MutableLongList
of()
Same asempty()
.MutableLongList
of(long... items)
Same aswith(long[])
.MutableLongList
ofAll(java.lang.Iterable<java.lang.Long> iterable)
Same aswithAll(Iterable)
.MutableLongList
ofAll(java.util.stream.LongStream items)
MutableLongList
ofAll(LongIterable items)
Same aswithAll(LongIterable)
.MutableLongList
with()
Same asempty()
.MutableLongList
with(long... items)
Creates a new list using the passeditems
argument as the backing store.MutableLongList
withAll(java.lang.Iterable<java.lang.Long> iterable)
MutableLongList
withAll(java.util.stream.LongStream items)
MutableLongList
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 Detail
-
empty
MutableLongList empty()
-
of
MutableLongList of()
Same asempty()
.
-
with
MutableLongList with()
Same asempty()
.
-
withInitialCapacity
default MutableLongList withInitialCapacity(int capacity)
Same asempty()
. but takes in an initial capacity- Since:
- 10.3
-
of
MutableLongList of(long... items)
Same aswith(long[])
.
-
with
MutableLongList with(long... 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 MutableLongList wrapCopy(long... array)
Creates a new list by first copying the array passed in.
-
ofAll
MutableLongList ofAll(LongIterable items)
Same aswithAll(LongIterable)
.
-
withAll
MutableLongList withAll(LongIterable items)
-
ofAll
MutableLongList ofAll(java.lang.Iterable<java.lang.Long> iterable)
Same aswithAll(Iterable)
.
-
withAll
MutableLongList withAll(java.lang.Iterable<java.lang.Long> iterable)
-
ofAll
MutableLongList ofAll(java.util.stream.LongStream items)
- Since:
- 9.0
-
withAll
MutableLongList withAll(java.util.stream.LongStream items)
- Since:
- 9.0
-
-