|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList
net.fortuna.ical4j.model.NumberList
public class NumberList
$Id: NumberList.java,v 1.23 2011/02/20 03:12:32 fortuna Exp $ [29-May-2004] Defines a list of numbers.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.util.ArrayList |
|---|
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 |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode |
| Constructor Detail |
|---|
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(java.lang.String aString)
aString - a string representation of a number list
public 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 allowed| Method Detail |
|---|
public final boolean add(java.lang.Integer aNumber)
aNumber - a number to add to the list
public 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 add
List#add(E)public final boolean remove(java.lang.Integer aNumber)
aNumber - a number to remove from the list
public final java.lang.String toString()
toString in class java.util.AbstractCollection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||