|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractList | +--java.util.ArrayList | +--com.tivoli.mts.PDAttrValueList
Constructor Summary | |
PDAttrValueList()
Constructs an empty list |
|
PDAttrValueList(java.util.Collection c)
Constructs a new PDAttrValueList containing the elements in the specified Collection. |
|
PDAttrValueList(int size)
Constructs an empty list with the specified initial capacity. |
Method Summary | |
void |
add(int index,
java.lang.Object element)
Inserts the specified element at the specified position in this list, moving all subsequent elements to the right |
boolean |
add(java.lang.Object element)
Overrides the generic method in ArrayList that allows objects of any type to be added to the end of an ArrayList. |
boolean |
addAll(java.util.Collection c)
Adds all of the elements in the specified collection to this collection. |
boolean |
addAll(int index,
java.util.Collection c)
Inserts all of the elements in the specified collection into this list, starting at the specified offset, shifting any subsequent elements to the right. |
java.lang.Object |
clone()
Return a clone of this object. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other Object is equal to this one. |
int |
hashCode()
Returns a hashcode for the current object. |
java.lang.Object |
set(int index,
java.lang.Object element)
Replaces the element at the specified position in this list with the specified element. |
java.lang.String |
toString()
Return a string version of this object. |
Methods inherited from class java.util.ArrayList |
clear, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
containsAll, remove, removeAll, retainAll |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
containsAll, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList |
Constructor Detail |
public PDAttrValueList()
public PDAttrValueList(int size)
initialCapacity
- the initial capacity of the PDAttrValueListpublic PDAttrValueList(java.util.Collection c)
c
- the collection whose elements are to be placed
into this listjava.lang.NullPointerException
- if no Collection is passed injava.lang.ClassCastException
- if one or more of the elements in the Collection
to be added are not PDAttrValue objectsMethod Detail |
public java.lang.Object set(int index, java.lang.Object element)
set
in class java.util.ArrayList
index
- the position where the element is to be placedelement
- the replacement elementjava.lang.ClassCastException
- if the element
to be replaced is not a PDAttrValue objectpublic boolean add(java.lang.Object element) throws java.lang.IllegalArgumentException
add
in class java.util.ArrayList
the
- element to add to the end of the listtrue
if this Collection changed as a result of
this calljava.lang.ClassCastException
- if called with an object other than a PDAttrValue.public void add(int index, java.lang.Object element)
add
in class java.util.ArrayList
index
- the position where the element is to be insertedelement
- the element to insertjava.lang.ClassCastException
- if the element to be inserted is not a
PDAttrValue objectpublic boolean addAll(java.util.Collection c) throws java.lang.NullPointerException, java.lang.ClassCastException
addAll
in class java.util.ArrayList
c
- The collection of PDAttrValue to add to the PDAttrValueListtrue
if this Collection changed as a result of the calljava.lang.NullPointerException
- if no Collection is passedjava.lang.ClassCastException
- if the input Collection contains an object
other than a PDAttrValuepublic boolean addAll(int index, java.util.Collection c) throws java.lang.NullPointerException, java.lang.ClassCastException
addAll
in class java.util.ArrayList
c
- The collection of PDAttrValue to insert into the
PDAttrValueListtrue
if this Collection changed as a result of the calljava.lang.NullPointerException
- if no Collection is passedjava.lang.ClassCastException
- if the input Collection contains an object
other than a PDAttrValuepublic boolean equals(java.lang.Object obj)
equals
in class java.util.AbstractList
obj
- the object to be compared to this onetrue
if the PDAttrValues are identical,
false
otherwise.public java.lang.Object clone()
clone
in class java.util.ArrayList
public java.lang.String toString()
toString
in class java.util.AbstractCollection
public int hashCode()
hashCode
in class java.util.AbstractList
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |