extra166y
Class AbstractParallelAnyArray

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

public abstract class AbstractParallelAnyArray
extends java.lang.Object

Abstract class serving as the basis of parallel array classes across types.


Method Summary
 int anyIndex()
          Returns the index of some element matching bound and filter constraints, or -1 if none.
 boolean isEmpty()
          Returns true if there are no elements
 int size()
          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 Detail

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