|
|||||||||
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
com.tivoli.pd.jutil.PDAttrValueList
public class PDAttrValueList
This class represents a list of Security Access Manager attribute values. Each value may be a String, a byte array, a Long, or a PDAdmSvcPobj.
Modes: Local,Remote
Constructor Summary | |
---|---|
PDAttrValueList(PDBasicContext context)
Constructs an empty list |
|
PDAttrValueList(PDBasicContext context,
java.util.Collection c)
Constructs a new PDAttrValueList containing the elements in the specified Collection. |
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 a higher index. |
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 a higher index. |
java.lang.Object |
clone()
Returns 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()
Returns a String representation of this object. |
Methods inherited from class java.util.ArrayList |
---|
clear, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, 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, removeAll, retainAll, subList |
Constructor Detail |
---|
public PDAttrValueList(PDBasicContext context) throws PDException
context
- the context that defines values for
logging and tracing. Cannot be null.
PDException
- if an error occurs.
This exception may contain error and message codes defined in the
product Error Message Reference document.public PDAttrValueList(PDBasicContext context, java.util.Collection c) throws PDException
context
- the context that defines values for
logging and tracing. Cannot be null.c
- the collection whose elements are to be placed
into this list.
PDException
- if one or more of the elements in the Collection
to be added are not PDAttrValue objects, or if
no Collection is supplied.
This exception may contain error and message codes defined in the
product Error Message Reference document.Method Detail |
---|
public java.lang.Object set(int index, java.lang.Object element)
set
in interface java.util.List
set
in class java.util.ArrayList
index
- the position where the element is to be placed.element
- the replacement element.
ClassCastExcepion
- if the element
to be replaced is not a PDAttrValue object.public boolean add(java.lang.Object element)
add
in interface java.util.Collection
add
in interface java.util.List
add
in class java.util.ArrayList
element
- element to add to the end of the list.
true
if this Collection changed as a result of
this call.
java.lang.ClassCastException
- if called with an object other than
a PDAttrValue.public void add(int index, java.lang.Object element)
add
in interface java.util.List
add
in class java.util.ArrayList
index
- the position where the element is to be inserted.element
- the element to insert.
java.lang.ClassCastException
- if the element to be inserted is not a
PDAttrValue object.public boolean addAll(java.util.Collection c) throws java.lang.NullPointerException, java.lang.ClassCastException
addAll
in interface java.util.Collection
addAll
in interface java.util.List
addAll
in class java.util.ArrayList
c
- The collection of PDAttrValue to add to the PDAttrValueList
true
if this Collection changed as a result of the call
java.lang.NullPointerException
- if no Collection is passed
java.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 interface java.util.List
addAll
in class java.util.ArrayList
index
- the position where the collection elements are to
be inserted.c
- The collection of PDAttrValue to insert into this
PDAttrValueList.
true
if this Collection changed as a result of
the call.
java.lang.NullPointerException
- if no Collection is supplied.
java.lang.ClassCastException
- if the input Collection contains an object
other than a PDAttrValue.public boolean equals(java.lang.Object obj)
equals
in interface java.util.Collection
equals
in interface java.util.List
equals
in class java.util.AbstractList
obj
- the object to be compared to this one.
true
if the PDAttrValueLists 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 interface java.util.Collection
hashCode
in interface java.util.List
hashCode
in class java.util.AbstractList
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |