public interface MutableIntListFactory
MutableIntList.
This file was automatically generated from template file mutablePrimitiveListFactory.stg.| Modifier and Type | Method and Description |
|---|---|
MutableIntList |
empty() |
MutableIntList |
of()
Same as
empty(). |
MutableIntList |
of(int... items)
Same as
with(int[]). |
MutableIntList |
ofAll(IntIterable items)
Same as
withAll(IntIterable). |
MutableIntList |
ofAll(IntStream items) |
MutableIntList |
ofAll(Iterable<Integer> iterable)
Same as
withAll(Iterable). |
MutableIntList |
with()
Same as
empty(). |
MutableIntList |
with(int... items)
Creates a new list using the passed
items argument as the backing store. |
MutableIntList |
withAll(IntIterable items) |
MutableIntList |
withAll(IntStream items) |
MutableIntList |
withAll(Iterable<Integer> iterable) |
default MutableIntList |
withInitialCapacity(int capacity)
Same as
empty(). |
default MutableIntList |
wrapCopy(int... array)
Creates a new list by first copying the array passed in.
|
MutableIntList empty()
MutableIntList of()
empty().MutableIntList with()
empty().default MutableIntList withInitialCapacity(int capacity)
empty(). but takes in an initial capacityMutableIntList of(int... items)
with(int[]).MutableIntList with(int... items)
items 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. !!!
default MutableIntList wrapCopy(int... array)
MutableIntList ofAll(IntIterable items)
withAll(IntIterable).MutableIntList withAll(IntIterable items)
MutableIntList ofAll(Iterable<Integer> iterable)
withAll(Iterable).MutableIntList withAll(Iterable<Integer> iterable)
MutableIntList ofAll(IntStream items)
MutableIntList withAll(IntStream items)
Copyright © 2004–2021. All rights reserved.