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 java.lang.Object
Abstract class serving as the basis of parallel array classes across types.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 elementsint
size()
Return the number of elements selected using bound or filter restrictions.
-
-
-
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
-
-