Package extra166y

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 Summary

    Modifier and Type
    Method
    Description
    int
    Returns the index of some element matching bound and filter constraints, or -1 if none.
    boolean
    Returns true if there are no elements
    int
    Return the number of elements selected using bound or filter restrictions.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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