com.tivoli.mts
Class PDAttrValues

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.HashSet
              extended by com.tivoli.mts.PDAttrValues
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.Set

public class PDAttrValues
extends java.util.HashSet
implements java.lang.Cloneable, java.io.Serializable

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.

NOTE: As of IBM Tivoli Access Manager for e-business v5.1, this entire class is deprecated. Equivalent function is in the com.tivoli.pd.jutil.PDAttrValues class.

See Also:
PDAttrValues, Serialized Form

Constructor Summary
PDAttrValues()
          Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this constructor is replaced by the equivalent constructor in the PDAttrValues class.
PDAttrValues(java.util.Collection c)
          Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this constructor is replaced by the equivalent constructor in the PDAttrValues class.
PDAttrValues(int initialCapacity)
          Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this constructor is replaced by the equivalent constructor in the PDAttrValues class.
PDAttrValues(int initialCapacity, float loadFactor)
          Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this constructor is replaced by the equivalent constructor in the PDAttrValues class.
 
Method Summary
 boolean add(java.lang.Object obj)
          Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValues class.
 boolean add(PDAttrValue value)
          Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValues class.
 boolean addAll(java.util.Collection c)
          Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValues class.
 java.lang.Object clone()
          Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValues class.
 boolean equals(java.lang.Object obj)
          Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValues class.
 int hashCode()
          Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValues class.
 java.lang.String toString()
          Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValues class.
 
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

PDAttrValues

public PDAttrValues()
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this constructor is replaced by the equivalent constructor in the PDAttrValues class.

Constructs a new, empty set; the backing HashMap instance has default capacity and load factor, which is 0.75.


PDAttrValues

public PDAttrValues(int initialCapacity)
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this constructor is replaced by the equivalent constructor in the PDAttrValues class.

Constructs a new, empty set; the backing HashMap instance has the specified initial capacity and default load factor, which is 0.75.


PDAttrValues

public PDAttrValues(int initialCapacity,
                    float loadFactor)
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this constructor is replaced by the equivalent constructor in the PDAttrValues class.

Constructs a new, empty set; the backing HashMap instance has the specified initial capacity and the specified load factor.


PDAttrValues

public PDAttrValues(java.util.Collection c)
             throws java.lang.IllegalArgumentException
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this constructor is replaced by the equivalent constructor in the PDAttrValues class.

Constructs a new PDAttrValues containing the elements in the specified Collection.

Parameters:
c - the collection whose elements are to be placed into this set
Throws:
java.lang.NullPointerException - if no Collection is passed in
java.lang.ClassCastException - if one or more of the elements in the Collection to be added are not PDAttrValue objects
java.lang.IllegalArgumentException
Method Detail

add

public boolean add(PDAttrValue value)
            throws java.lang.NullPointerException
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValues class.

Adds the input PDAttrValue to this PDAttrValues. If a PDAttrValue with the same value is already in the Set, the input PDAttrValue will replace it.

Parameters:
value - the value to be added
Returns:
true if this Collection changed as a result of this call
Throws:
java.lang.NullPointerException - if no PDAttrValue is supplied

add

public boolean add(java.lang.Object obj)
            throws java.lang.IllegalArgumentException
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValues class.

Overrides the generic method in HashSet that allows objects of any type to be added to a Set. This method will throw an IllegalArgumentException if called with an object other than a PDAttrValue.

Specified by:
add in interface java.util.Collection
Specified by:
add in interface java.util.Set
Overrides:
add in class java.util.HashSet
Parameters:
obj - the value to be added
Returns:
true if this Collection changed as a result of this call
Throws:
java.lang.IllegalArgumentException - if called with an object other than a PDAttrValue.

addAll

public boolean addAll(java.util.Collection c)
               throws java.lang.NullPointerException,
                      java.lang.ClassCastException
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValues class.

Adds all of the elements in the specified collection to this collection. The behavior of this operation is undefined if the specified collection is modified while the operation is in progress. (This implies that the behavior of this call is undefined if the specified collection is this collection, and this collection is nonempty.) This implementation iterates over the specified collection, and adds each PDAttrValue returned by the iterator to this collection, in turn. If any objects are returned by the iterator that are not PDAttrValue, a ClassCastException is thrown.

Specified by:
addAll in interface java.util.Collection
Specified by:
addAll in interface java.util.Set
Overrides:
addAll in class java.util.AbstractCollection
Parameters:
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.
Returns:
true if this Collection changed as a result of the call
Throws:
java.lang.NullPointerException - if no Collection is passed
java.lang.ClassCastException - if the input Collection contains an object other than a PDAttrValue

clone

public java.lang.Object clone()
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValues class.

Return a clone of this object. This is implemented as a deep copy.

Overrides:
clone in class java.util.HashSet
Returns:
a clone of this object

equals

public boolean equals(java.lang.Object obj)
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValues class.

Indicates whether some other Object is equal to this one. In particular, this implementation checks that the object is a PDAttrValues, and then compares each PDAttrValue.

Specified by:
equals in interface java.util.Collection
Specified by:
equals in interface java.util.Set
Overrides:
equals in class java.util.AbstractSet
Parameters:
obj - the object to be compared to this one
Returns:
true if the PDAttrValues are identical, false otherwise.

toString

public java.lang.String toString()
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValues class.

Return a string version of this object.

Overrides:
toString in class java.util.AbstractCollection
Returns:
a String representing this object

hashCode

public int hashCode()
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValues class.

Returns a hashcode for the current object.

Specified by:
hashCode in interface java.util.Collection
Specified by:
hashCode in interface java.util.Set
Overrides:
hashCode in class java.util.AbstractSet
Returns:
a hashcode for the current object.