Class PlainArray<N extends Comparable<N>>

All Implemented Interfaces:
RandomAccess, Access1D<N>, Access1D.Aggregatable<N>, Access1D.Collectable<N,Mutate1D>, Access1D.Visitable<N>, Factory1D.Builder<DenseArray<N>>, Mutate1D, Mutate1D.Fillable<N>, Mutate1D.Modifiable<N>, Structure1D
Direct Known Subclasses:
BufferArray, PrimitiveArray, ReferenceTypeArray

public abstract class PlainArray<N extends Comparable<N>> extends DenseArray<N> implements RandomAccess
Array class limited by integer (int, not long) indices. Typically this will be a plain java array as in double[]. This class terminates/implements all methods with long arguments, casts the long arguments to int and delegates to new protected abstract methods with the int arguments. No new public methods are declared here.
  • Field Details

    • MAX_SIZE

      public static final int MAX_SIZE
      Exists as a private constant in ArrayList. The Oracle JVM seems to actually be limited at Integer.MAX_VALUE - 2, but other JVM:s may have different limits.
      See Also:
    • CHARACTERISTICS

      static final int CHARACTERISTICS
      See Also:
    • mySize

      private final int mySize
  • Constructor Details

  • Method Details