Class PrimitiveIntList
java.lang.Object
java.util.AbstractCollection<Integer>
java.util.AbstractList<Integer>
io.datarouter.bytes.primitivelist.BasePrimitiveList<Integer>
io.datarouter.bytes.primitivelist.PrimitiveIntList
- All Implemented Interfaces:
Iterable<Integer>,Collection<Integer>,List<Integer>,RandomAccess,SequencedCollection<Integer>
Provides a view over a subset of a primitive int array with List<Integer> semantics.
List elements can be modified, but the list can't change size.
Nulls are rejected.
-
Field Summary
Fields inherited from class io.datarouter.bytes.primitivelist.BasePrimitiveList
from, NOT_FOUND_INDEX, toFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionPrimitiveIntList(int[] array) PrimitiveIntList(int[] array, int from, int to) PrimitiveIntList(Collection<Integer> values) -
Method Summary
Modifier and TypeMethodDescriptionstatic PrimitiveIntListempty()protected booleaninternalEquals(Object object) protected intprotected IntegerinternalGet(int index) protected intprotected booleaninternalIsCorrectType(Object object) protected intprotected IntegerinternalSet(int index, Integer value) internalSubList(int fromIndex, int toIndex) Methods inherited from class io.datarouter.bytes.primitivelist.BasePrimitiveList
contains, equals, get, hashCode, indexOf, initFromCollection, lastIndexOf, set, size, subListMethods inherited from class java.util.AbstractList
add, add, addAll, clear, iterator, listIterator, listIterator, remove, removeRangeMethods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, addFirst, addLast, containsAll, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, toArray, toArray
-
Constructor Details
-
PrimitiveIntList
public PrimitiveIntList(int[] array) -
PrimitiveIntList
public PrimitiveIntList(int[] array, int from, int to) -
PrimitiveIntList
-
-
Method Details
-
empty
-
spliterator
-
internalEquals
-
internalFirstIndexOf
-
internalGet
-
internalHashCode
protected int internalHashCode() -
internalIsCorrectType
-
internalLastIndexOf
-
internalSet
-
internalSubList
-