| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final ValueRange | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | NumberList(ValueRange
a range defining the lower and upper bounds of allowed values valueRange, boolean allow negative values, where abs(value) is within the specified range allowsNegativeValues)Construct a number list restricted by the specified |
| public | NumberList(int
the minimum allowable value minValue, int the maximum allowable value maxValue, boolean indicates whether negative values are allowed allowsNegativeValues)
Deprecated
use
NumberList#NumberList(ValueRange, boolean)
Constructor with limits. |
| public | |
| public | NumberList(final String
a string representation of a list of values aString, ValueRange a range defining the lower and upper bounds of allowed values valueRange, boolean allow negative values, where abs(value) is within the specified range allowsNegativeValues)Construct a number list restricted by the specified |
| public | |
| public | NumberList(final String
a string representation of a number list aString, int the minimum allowable value minValue, int the maximum allowable value maxValue, boolean indicates whether negative values are allowed allowsNegativeValues)
Deprecated
use
NumberList#NumberList(String, ValueRange, boolean)
|
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | Returns: true if the number was added, otherwise falsea number to add to the list aNumber)Overrides java. Implements java. Appends the specified element to the end of this list. |
| public boolean | addAll(Collection<? extends Integer>
collection containing elements to be added to this list c)Overrides java. Implements java. Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's Iterator. |
| public static NumberList | |
| public final String | toString()
Overrides java. Returns a string representation of this collection. |
| public static String |
| allowsNegativeValues | back to summary |
|---|---|
| private final boolean allowsNegativeValues | |
| range | back to summary |
|---|---|
| private final ValueRange range | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| NumberList | back to summary |
|---|---|
| public NumberList() Default constructor. | |
| NumberList | back to summary |
|---|---|
| public NumberList(ValueRange valueRange, boolean allowsNegativeValues) Construct a number list restricted by the specified
| |
| NumberList | back to summary |
|---|---|
| public NumberList(int minValue, int maxValue, boolean allowsNegativeValues)
Deprecated Constructor with limits.
| |
| NumberList | back to summary |
|---|---|
| public NumberList(final String aString) Constructor.
| |
| NumberList | back to summary |
|---|---|
| public NumberList(final String aString, ValueRange valueRange, boolean allowsNegativeValues) Construct a number list restricted by the specified
| |
| NumberList | back to summary |
|---|---|
| public NumberList(Collection<Integer> values, ValueRange valueRange, boolean allowsNegativeValues) | |
| NumberList | back to summary |
|---|---|
| public NumberList(final String aString, int minValue, int maxValue, boolean allowsNegativeValues)
Deprecated
| |
| add | back to summary |
|---|---|
| public final boolean add(final Integer aNumber) Overrides java. Implements java. Doc from java. Appends the specified element to the end of this list. | |
| addAll | back to summary |
|---|---|
| public boolean addAll(Collection<? extends Integer> c) Overrides java. Implements java. Doc from java. Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's Iterator. The behavior of this operation is undefined if the specified collection is modified while the operation is in progress. (This implies that the behavior of this call is undefined if the specified collection is this list, and this list is nonempty.)
| |
| parse | back to summary |
|---|---|
| public static NumberList parse(String numberString) | |
| toString | back to summary |
|---|---|
| public final String toString() Overrides java. Doc from java. Returns a string representation of this collection. The string
representation consists of a list of the collection's elements in the
order they are returned by its iterator, enclosed in square brackets
( | |
| toString | back to summary |
|---|---|
| public static String toString(List<Integer> list) | |