Class 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.
  • Constructor Details

    • PrimitiveLongList

      public PrimitiveLongList(long[] array)
    • PrimitiveLongList

      public PrimitiveLongList(long[] array, int from, int to)
    • PrimitiveLongList

      public PrimitiveLongList(Collection<Long> values)
  • Method Details

    • empty

      public static PrimitiveLongList empty()
    • spliterator

      public Spliterator.OfLong spliterator()
      Specified by:
      spliterator in interface Collection<Long>
      Specified by:
      spliterator in interface Iterable<Long>
      Specified by:
      spliterator in interface List<Long>
    • internalEquals

      protected boolean internalEquals(Object object)
    • internalFirstIndexOf

      protected int internalFirstIndexOf(Object obj)
    • internalGet

      protected Long internalGet(int index)
    • internalHashCode

      protected int internalHashCode()
    • internalIsCorrectType

      protected boolean internalIsCorrectType(Object object)
    • internalLastIndexOf

      protected int internalLastIndexOf(Object obj)
    • internalSet

      protected Long internalSet(int index, Long value)
    • internalSubList

      protected List<Long> internalSubList(int fromIndex, int toIndex)