Class PrimitiveIntList

All Implemented Interfaces:
Iterable<Integer>, Collection<Integer>, List<Integer>, RandomAccess, SequencedCollection<Integer>

public class PrimitiveIntList extends BasePrimitiveList<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.
  • Constructor Details

    • PrimitiveIntList

      public PrimitiveIntList(int[] array)
    • PrimitiveIntList

      public PrimitiveIntList(int[] array, int from, int to)
    • PrimitiveIntList

      public PrimitiveIntList(Collection<Integer> values)
  • Method Details

    • empty

      public static PrimitiveIntList empty()
    • spliterator

      public Spliterator.OfInt spliterator()
    • internalEquals

      protected boolean internalEquals(Object object)
    • internalFirstIndexOf

      protected int internalFirstIndexOf(Object obj)
    • internalGet

      protected Integer internalGet(int index)
    • internalHashCode

      protected int internalHashCode()
    • internalIsCorrectType

      protected boolean internalIsCorrectType(Object object)
    • internalLastIndexOf

      protected int internalLastIndexOf(Object obj)
    • internalSet

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

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