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