- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Integer>,Collection<Integer>,List<Integer>,RandomAccess
$Id$ [29-May-2004]
Defines a list of numbers.
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.NumberList(int minValue, int maxValue, boolean allowsNegativeValues) Deprecated.NumberList(String aString) Constructor.NumberList(String aString, int minValue, int maxValue, boolean allowsNegativeValues) Deprecated.NumberList(String aString, ValueRange valueRange, boolean allowsNegativeValues) Construct a number list restricted by the specifiedValueRange.NumberList(ValueRange valueRange, boolean allowsNegativeValues) Construct a number list restricted by the specifiedValueRange.NumberList(Collection<Integer> values, ValueRange valueRange, boolean allowsNegativeValues) -
Method Summary
Methods inherited from class java.util.ArrayList
add, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAllMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll
-
Constructor Details
-
NumberList
public NumberList()Default constructor. -
NumberList
Construct a number list restricted by the specifiedValueRange.- Parameters:
valueRange- a range defining the lower and upper bounds of allowed valuesallowsNegativeValues- allow negative values, where abs(value) is within the specified range
-
NumberList
Deprecated.Constructor with limits.- Parameters:
minValue- the minimum allowable valuemaxValue- the maximum allowable valueallowsNegativeValues- indicates whether negative values are allowed
-
NumberList
Constructor.- Parameters:
aString- a string representation of a number list
-
NumberList
Construct a number list restricted by the specifiedValueRange.- Parameters:
aString- a string representation of a list of valuesvalueRange- a range defining the lower and upper bounds of allowed valuesallowsNegativeValues- allow negative values, where abs(value) is within the specified range
-
NumberList
-
NumberList
@Deprecated public NumberList(String aString, int minValue, int maxValue, boolean allowsNegativeValues) Deprecated.- Parameters:
aString- a string representation of a number listminValue- the minimum allowable valuemaxValue- the maximum allowable valueallowsNegativeValues- indicates whether negative values are allowed
-
-
Method Details
-
add
-
addAll
-
toString
- Overrides:
toStringin classAbstractCollection<Integer>
-
toString
-
parse
-
NumberList(ValueRange, boolean)