public class PatternStateIterator extends Object implements Iterator<byte[]>
| Constructor and Description |
|---|
PatternStateIterator(byte[] pattern)
Create an iterator over all states in a Boolean pattern.
|
PatternStateIterator(byte[] pattern,
byte[] maxs)
Create an iterator over all states in a multi-valued pattern.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
byte[] |
next() |
void |
reset(byte[] pattern)
Assign a new pattern to this iterator and start over.
|
void |
reset(int[] pattern)
Assign a new pattern to this iterator and start over.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removepublic PatternStateIterator(byte[] pattern)
pattern - the pattern to expand. jokers are represented by negative values.public PatternStateIterator(byte[] pattern,
byte[] maxs)
pattern - the pattern to expand. Jokers are represented by negative values.maxs - the max value of all components in the patternpublic void reset(byte[] pattern)
pattern - the new pattern to expand. Jokers are represented by negative values.public void reset(int[] pattern)
pattern - the new pattern to expand. Jokers are represented by negative values.Copyright © 2012–2020. All rights reserved.