public class SequenceList extends Object
The general syntax is:
[!][o][odd][e][even]start-end
You can have multiple ranges separated by commas ','. The '!' modifier removes the range from what is already selected. The range changes are incremental, that is, numbers are added or deleted as the range appears. The start or the end, but not both, can be omitted.
Modifier and Type | Field and Description |
---|---|
protected static int |
COMMA |
private static int |
DIGIT |
private static int |
DIGIT2 |
protected static int |
END |
protected static char |
EOT |
protected boolean |
even |
private static int |
FIRST |
protected int |
high |
protected boolean |
inverse |
protected int |
low |
protected static int |
MINUS |
protected static int |
NOT |
private static String |
NOT_OTHER |
protected int |
number |
protected static int |
NUMBER |
protected boolean |
odd |
protected String |
other |
private static int |
OTHER |
protected int |
ptr |
protected char[] |
text |
protected static int |
TEXT |
Modifier | Constructor and Description |
---|---|
protected |
SequenceList(String range) |
Modifier and Type | Method and Description |
---|---|
static List<Integer> |
expand(String ranges,
int maxNumber)
Generates a list of numbers from a string.
|
protected boolean |
getAttributes() |
protected int |
getType() |
protected char |
nextChar() |
private void |
otherProc() |
protected void |
putBack() |
protected static final int COMMA
protected static final int MINUS
protected static final int NOT
protected static final int TEXT
protected static final int NUMBER
protected static final int END
protected static final char EOT
private static final int FIRST
private static final int DIGIT
private static final int OTHER
private static final int DIGIT2
private static final String NOT_OTHER
protected char[] text
protected int ptr
protected int number
protected int low
protected int high
protected boolean odd
protected boolean even
protected boolean inverse
protected SequenceList(String range)
protected char nextChar()
protected void putBack()
protected int getType()
private void otherProc()
protected boolean getAttributes()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses