net.fortuna.ical4j.model
public class NumberList extends java.util.ArrayList 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) |
boolean |
add(java.lang.Object arg0)
Overrides superclass to throw an
IllegalArgumentException
where argument is not a java.lang.Integer. |
boolean |
remove(java.lang.Integer aNumber) |
java.lang.String |
toString() |
add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, 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)
aNumber - a number to add to the listpublic final boolean add(java.lang.Object arg0)
IllegalArgumentException
where argument is not a java.lang.Integer.add in interface java.util.Collectionadd in interface java.util.Listadd in class java.util.ArrayListarg0 - an object to addList.add(Object)public final boolean remove(java.lang.Integer aNumber)
aNumber - a number to remove from the listpublic final java.lang.String toString()
toString in class java.util.AbstractCollectionCopyright © 2004-2014 Micronode. All Rights Reserved.