|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractSet | +--java.util.HashSet | +--com.tivoli.mts.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.
Constructor Summary | |
PDAttrValues()
Constructs a new, empty set; the backing HashMap instance has default capacity and load factor, which is 0.75. |
|
PDAttrValues(java.util.Collection c)
Constructs a new Set containing the elements in the specified Collection. |
|
PDAttrValues(int initialCapacity)
Constructs a new, empty set; the backing HashMap instance has the specified initial capacity and default load factor, which is 0.75. |
|
PDAttrValues(int initialCapacity,
float loadFactor)
Constructs a new, empty set; the backing HashMap instance has the specified initial capacity and the specified load factor. |
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()
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.String |
toString()
Return a string version 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 |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
containsAll, removeAll, retainAll, toArray, toArray |
Constructor Detail |
public PDAttrValues()
public PDAttrValues(int initialCapacity)
public PDAttrValues(int initialCapacity, float loadFactor)
public PDAttrValues(java.util.Collection c) throws java.lang.IllegalArgumentException
c
- the collection whose elements are to be placed
into this setjava.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 boolean add(PDAttrValue value) throws java.lang.NullPointerException
value
- the value to be addedtrue
if this Collection changed as a result of this calljava.lang.NullPointerException
- if no PDAttrValue is suppliedpublic boolean add(java.lang.Object obj) throws java.lang.IllegalArgumentException
add
in class java.util.HashSet
java.lang.IllegalArgumentException
- if calledpublic boolean addAll(java.util.Collection c) throws java.lang.NullPointerException, java.lang.ClassCastException
addAll
in class java.util.AbstractCollection
true
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 java.lang.Object clone()
clone
in class java.util.HashSet
public boolean equals(java.lang.Object obj)
equals
in class java.util.AbstractSet
obj
- the object to be compared to this onetrue
if the PDAttrValues are identical,
false
otherwise.public java.lang.String toString()
toString
in class java.util.AbstractCollection
public int hashCode()
hashCode
in class java.util.AbstractSet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |