net.fortuna.ical4j.model
public class NumberList extends ArrayList implements Serializable
modCount
Constructor and Description |
---|
NumberList()
Default constructor.
|
NumberList(int minValue,
int maxValue,
boolean allowsNegativeValues)
Constructor with limits.
|
NumberList(String aString)
Constructor.
|
NumberList(String aString,
int minValue,
int maxValue,
boolean allowsNegativeValues) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Integer aNumber) |
boolean |
add(Object arg0)
Overrides superclass to throw an
IllegalArgumentException
where argument is not a java.lang.Integer . |
boolean |
remove(Integer aNumber) |
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, trimToSize
equals, hashCode
containsAll
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
public 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(String aString)
aString
- a string representation of a number listpublic NumberList(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(Integer aNumber)
aNumber
- a number to add to the listpublic final boolean add(Object arg0)
IllegalArgumentException
where argument is not a java.lang.Integer
.add
in interface Collection
add
in interface List
add
in class ArrayList
arg0
- an object to addList.add(Object)
public final boolean remove(Integer aNumber)
aNumber
- a number to remove from the listpublic final String toString()
toString
in class AbstractCollection
Copyright © 2004-2013 Micronode. All Rights Reserved.