public class NumberList
extends java.util.ArrayList<java.lang.Integer>
implements java.io.Serializable
| Constructor and Description |
|---|
NumberList()
Default constructor.
|
NumberList(int minValue,
int maxValue,
boolean allowsNegativeValues)
Constructor with limits.
|
NumberList(java.lang.String aString)
Constructor.
|
NumberList(java.lang.String aString,
int minValue,
int maxValue,
boolean allowsNegativeValues) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(java.lang.Integer aNumber) |
java.lang.String |
toString() |
add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizepublic NumberList()
public NumberList(int minValue,
int maxValue,
boolean allowsNegativeValues)
minValue - the minimum allowable valuemaxValue - the maximum allowable valueallowsNegativeValues - indicates whether negative values are allowedpublic NumberList(java.lang.String aString)
aString - a string representation of a number listpublic NumberList(java.lang.String aString,
int minValue,
int maxValue,
boolean allowsNegativeValues)
aString - a string representation of a number listminValue - the minimum allowable valuemaxValue - the maximum allowable valueallowsNegativeValues - indicates whether negative values are allowedpublic final boolean add(java.lang.Integer aNumber)
add in interface java.util.Collection<java.lang.Integer>add in interface java.util.List<java.lang.Integer>add in class java.util.ArrayList<java.lang.Integer>aNumber - a number to add to the listpublic final java.lang.String toString()
toString in class java.util.AbstractCollection<java.lang.Integer>