|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet
com.tivoli.pd.jutil.PDAttrValues
public class PDAttrValues
This class represents a collection of values for a particular PDAttr. This particular implementation is a Set, so duplicates are not allowed in a particular PDAttrValues object.
Modes: Local,Remote
Constructor Summary | |
---|---|
PDAttrValues(PDBasicContext context)
Constructs a new, empty set; the backing HashMap instance has default capacity and load factor, which is 0.75. |
|
PDAttrValues(PDBasicContext context,
java.util.Collection c)
Constructs a new PDAttrValues containing the elements in the specified Collection. |
Method Summary | |
---|---|
boolean |
add(java.lang.Object obj)
Overrides the generic method in HashSet that allows objects of any type to be added to a Set. |
boolean |
add(PDAttrValue value)
Adds the input PDAttrValue to this PDAttrValues. |
boolean |
addAll(java.util.Collection c)
Adds all of the elements in the specified collection to this collection. |
java.lang.Object |
clone()
Returns a clone of this object. |
byte[] |
encode()
|
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.String |
toString()
Returns a String representation of this object. |
Methods inherited from class java.util.HashSet |
---|
clear, contains, isEmpty, iterator, remove, size |
Methods inherited from class java.util.AbstractSet |
---|
removeAll |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, retainAll, toArray, toArray |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
---|
containsAll, removeAll, retainAll, toArray, toArray |
Constructor Detail |
---|
public PDAttrValues(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 PDAttrValues(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 set.
PDException
- if one or more of the elements in the Collection
to be added are not PDAttrValue objects, or if no
Collection is passed in.
This exception may contain error and message codes defined in the
product Error Message Reference document.Method Detail |
---|
public boolean add(PDAttrValue value) throws PDException
value
- the value to be added.
true
if this Collection changed as a result of
this call.
PDException
- if no PDAttrValue is passed in.
This exception may contain error and message codes defined in the
product Error Message Reference document.public boolean add(java.lang.Object obj) throws java.lang.IllegalStateException, java.lang.IllegalArgumentException, java.lang.RuntimeException
add
in interface java.util.Collection
add
in interface java.util.Set
add
in class java.util.HashSet
obj
- the value to be added.
true
if this Collection changed as a result of
this call.
java.lang.IllegalArgumentException
- if called with an object other than
a PDAttrValue.
java.lang.IllegalStateException
java.lang.RuntimeException
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.Set
addAll
in class java.util.AbstractCollection
c
- The collection of PDAttrValue to add to the PDAttrValues
If the contents of a PDAttrValue in the collection matches the
contents of a PDAttrValue already in the set, it will not be added.
true
if this Collection changed as a result of
this call.
java.lang.ClassCastException
- if the input Collection contains an object
other than a PDAttrValue or
NullPointerException if no Collection is passed in.
java.lang.NullPointerException
public java.lang.Object clone()
clone
in class java.util.HashSet
public boolean equals(java.lang.Object obj)
equals
in interface java.util.Collection
equals
in interface java.util.Set
equals
in class java.util.AbstractSet
obj
- the object to be compared to this one.
true
if the PDAttrValues are identical,
false
otherwise.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.Set
hashCode
in class java.util.AbstractSet
public byte[] encode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |