T
- Any type of elements in the array.public class IteratorArrayMask<T>
extends java.lang.Object
implements java.util.Iterator<T>, java.lang.Iterable<T>
Modifier and Type | Field and Description |
---|---|
(package private) T[] |
array |
(package private) boolean |
bExecHasNext |
(package private) int |
ix |
(package private) long |
mask |
Constructor and Description |
---|
IteratorArrayMask(T[] array,
long mask)
Initializes with given mask.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
java.util.Iterator<T> |
iterator() |
T |
next() |
int ix
final T[] array
final long mask
boolean bExecHasNext
public IteratorArrayMask(T[] array, long mask)
array
- Any array with proper typemask
- selection which elements should be returned 1-of-64