Class PrimitiveLongList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<T>
io.datarouter.bytes.primitivelist.BasePrimitiveList<Long>
io.datarouter.bytes.primitivelist.PrimitiveLongList
- All Implemented Interfaces:
Iterable<Long>,Collection<Long>,List<Long>,RandomAccess
public class PrimitiveLongList extends BasePrimitiveList<Long> implements RandomAccess
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
Constructors Constructor Description PrimitiveLongList(long[] array)PrimitiveLongList(long[] array, int from, int to)PrimitiveLongList(Collection<Long> values) -
Method Summary
Modifier and Type Method Description protected booleaninternalEquals(Object object)protected intinternalFirstIndexOf(Object obj)protected LonginternalGet(int index)protected intinternalHashCode()protected booleaninternalIsCorrectType(Object object)protected intinternalLastIndexOf(Object obj)protected LonginternalSet(int index, Long value)protected List<Long>internalSubList(int fromIndex, int toIndex)Spliterator.OfLongspliterator()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, toArray
-
Constructor Details
-
PrimitiveLongList
public PrimitiveLongList(long[] array) -
PrimitiveLongList
public PrimitiveLongList(long[] array, int from, int to) -
PrimitiveLongList
-
-
Method Details
-
spliterator
- Specified by:
spliteratorin interfaceCollection<Long>- Specified by:
spliteratorin interfaceIterable<Long>- Specified by:
spliteratorin interfaceList<Long>
-
internalEquals
-
internalFirstIndexOf
-
internalGet
-
internalHashCode
protected int internalHashCode() -
internalIsCorrectType
-
internalLastIndexOf
-
internalSet
-
internalSubList
-