public abstract class ValueSet extends Object implements Iterable<Long>
Modifier and Type | Field and Description |
---|---|
protected long |
current |
protected long |
min |
Modifier | Constructor and Description |
---|---|
protected |
ValueSet(long min) |
Modifier and Type | Method and Description |
---|---|
protected static String |
formatThing(String prefix,
int variable) |
static void |
main(String[] args)
Just for testing purposes.
|
static ValueSet |
newValueSet(Long protocolMin,
Long protocolMax,
String s)
Factory method for parsing strings of iterations.
|
void |
reset()
Resets the iterator to virgin state.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, iterator, spliterator
public void reset()
public static ValueSet newValueSet(Long protocolMin, Long protocolMax, String s) throws UnassignedException, ParseException
protocolMin
- Protocol min value, or null if unknown,protocolMax
- Protocol max value, or null if unknown.s
- String to be parsed describing the iteration.UnassignedException
- if protocolMin == null or protocolMax == null and iteration uses # or *.ParseException
- unparseable s argument.public static void main(String[] args)
args
- Copyright © 2016. All rights reserved.