Class AbstractParallelAnyArray

java.lang.Object
extra166y.AbstractParallelAnyArray
Direct Known Subclasses:
ParallelArrayWithDoubleMapping, ParallelArrayWithLongMapping, ParallelArrayWithMapping, ParallelDoubleArrayWithDoubleMapping, ParallelDoubleArrayWithLongMapping, ParallelDoubleArrayWithMapping, ParallelLongArrayWithDoubleMapping, ParallelLongArrayWithLongMapping, ParallelLongArrayWithMapping

public abstract class AbstractParallelAnyArray extends Object
Abstract class serving as the basis of parallel array classes across types.
  • Method Details

    • size

      public int size()
      Return the number of elements selected using bound or filter restrictions. Note that this method must evaluate all selectors to return its result.
      Returns:
      the number of elements
    • anyIndex

      public int anyIndex()
      Returns the index of some element matching bound and filter constraints, or -1 if none.
      Returns:
      index of matching element, or -1 if none.
    • isEmpty

      public boolean isEmpty()
      Returns true if there are no elements
      Returns:
      true if there are no elements