Class PrimitiveLongList
java.lang.Object
java.util.AbstractCollection<Long>
java.util.AbstractList<Long>
io.datarouter.bytes.primitivelist.BasePrimitiveList<Long>
io.datarouter.bytes.primitivelist.PrimitiveLongList
- All Implemented Interfaces:
Iterable<Long>,Collection<Long>,List<Long>,RandomAccess,SequencedCollection<Long>
Provides a view over a subset of a primitive long array with List<Long> 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
ConstructorsConstructorDescriptionPrimitiveLongList(long[] array) PrimitiveLongList(long[] array, int from, int to) PrimitiveLongList(Collection<Long> values) -
Method Summary
Modifier and TypeMethodDescriptionstatic PrimitiveLongListempty()protected booleaninternalEquals(Object object) protected intprotected LonginternalGet(int index) protected intprotected booleaninternalIsCorrectType(Object object) protected intprotected LonginternalSet(int index, Long 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
-
PrimitiveLongList
public PrimitiveLongList(long[] array) -
PrimitiveLongList
public PrimitiveLongList(long[] array, int from, int to) -
PrimitiveLongList
-
-
Method Details
-
empty
-
spliterator
-
internalEquals
-
internalFirstIndexOf
-
internalGet
-
internalHashCode
protected int internalHashCode() -
internalIsCorrectType
-
internalLastIndexOf
-
internalSet
-
internalSubList
-