Skip navigation links


oracle.iam.platform.entitymgr.vo
Class MultiValueSet

java.lang.Object
  extended by java.util.AbstractCollection
      extended by java.util.AbstractSet
          extended by java.util.HashSet
              extended by oracle.iam.platform.entitymgr.vo.MultiValueSet

All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.Set, IMultiValueData

public class MultiValueSet
extends java.util.HashSet
implements IMultiValueData

Data structure to store multiple values of an attribute

See Also:
Serialized Form

Constructor Summary
MultiValueSet()
          Constructs a new, empty MVA set;
MultiValueSet(java.util.Collection c)
          Constructs a new set containing the elements in the specified collection.
MultiValueSet(int initialCapacity)
           
MultiValueSet(java.lang.Object[] arrayOfValues)
          Constructs a new set containing the elements in the specified collection.

 

Method Summary
 boolean add(java.lang.Object e)
          Adds given value in the multi-valued collection
 boolean addAll(java.util.Collection c)
          Adds given values in the multi-valued collection
 boolean addAll(java.lang.Object[] values)
          Adds given values in the multi-valued collection
 boolean remove(java.lang.Object e)
          removes given value from the multi-valued collection
 boolean removeAll(java.util.Collection c)
          removes given values from the multi-valued collection
 boolean removeAll(java.lang.Object[] values)
          removes given values from the multi-valued collection
 boolean replaceAll(java.util.Collection values)
          Replaces all the existing values in the multi-valued collection with the new values provided
 boolean replaceAll(java.lang.Object[] values)
          Replaces all the existing values in the multi-valued collection with the new values provided
 java.lang.String toString()
           

 

Methods inherited from class java.util.HashSet
clear, clone, contains, isEmpty, iterator, size

 

Methods inherited from class java.util.AbstractSet
equals, hashCode

 

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.Collection
clear, contains, containsAll, equals, hashCode, isEmpty, iterator, retainAll, size, toArray, toArray

 

Methods inherited from interface java.util.Set
containsAll, equals, hashCode, retainAll, toArray, toArray

 

Constructor Detail

MultiValueSet

public MultiValueSet()
Constructs a new, empty MVA set;

MultiValueSet

public MultiValueSet(java.util.Collection c)
Constructs a new set containing the elements in the specified collection. * @param c the collection whose elements are to be placed into this set

MultiValueSet

public MultiValueSet(java.lang.Object[] arrayOfValues)
Constructs a new set containing the elements in the specified collection. * @param arrayOfValues the array whose elements are to be placed into this set

MultiValueSet

public MultiValueSet(int initialCapacity)
Parameters:
initialCapacity -

Method Detail

add

public boolean add(java.lang.Object e)
Description copied from interface: IMultiValueData
Adds given value in the multi-valued collection
Specified by:
add in interface java.util.Collection
Specified by:
add in interface java.util.Set
Specified by:
add in interface IMultiValueData
Overrides:
add in class java.util.HashSet
Parameters:
e - value to be added in the collection
Returns:
true if this collection changed as a result of the call

addAll

public boolean addAll(java.util.Collection c)
Description copied from interface: IMultiValueData
Adds given values in the multi-valued collection
Specified by:
addAll in interface java.util.Collection
Specified by:
addAll in interface java.util.Set
Specified by:
addAll in interface IMultiValueData
Overrides:
addAll in class java.util.AbstractCollection
Parameters:
c - values to be added in the collection
Returns:
true if this collection changed as a result of the call

addAll

public boolean addAll(java.lang.Object[] values)
Description copied from interface: IMultiValueData
Adds given values in the multi-valued collection
Specified by:
addAll in interface IMultiValueData
Parameters:
values - values to be added in the collection
Returns:
true if this collection changed as a result of the call

remove

public boolean remove(java.lang.Object e)
Description copied from interface: IMultiValueData
removes given value from the multi-valued collection
Specified by:
remove in interface java.util.Collection
Specified by:
remove in interface java.util.Set
Specified by:
remove in interface IMultiValueData
Overrides:
remove in class java.util.HashSet
Parameters:
e - value to be removed from the collection
Returns:
true if this collection changed as a result of the call

removeAll

public boolean removeAll(java.util.Collection c)
Description copied from interface: IMultiValueData
removes given values from the multi-valued collection
Specified by:
removeAll in interface java.util.Collection
Specified by:
removeAll in interface java.util.Set
Specified by:
removeAll in interface IMultiValueData
Overrides:
removeAll in class java.util.AbstractSet
Parameters:
c - values to be removed from the collection
Returns:
true if this collection changed as a result of the call

removeAll

public boolean removeAll(java.lang.Object[] values)
Description copied from interface: IMultiValueData
removes given values from the multi-valued collection
Specified by:
removeAll in interface IMultiValueData
Parameters:
values - values to be removed from the collection
Returns:
true if this collection changed as a result of the call

replaceAll

public boolean replaceAll(java.lang.Object[] values)
Description copied from interface: IMultiValueData
Replaces all the existing values in the multi-valued collection with the new values provided
Specified by:
replaceAll in interface IMultiValueData
Parameters:
values - values to replace in the collection
Returns:
true if this collection changed as a result of the call

replaceAll

public boolean replaceAll(java.util.Collection values)
Description copied from interface: IMultiValueData
Replaces all the existing values in the multi-valued collection with the new values provided
Specified by:
replaceAll in interface IMultiValueData
Parameters:
values - values to replace in the collection
Returns:
true if this collection changed as a result of the call

toString

public java.lang.String toString()
Overrides:
toString in class java.util.AbstractCollection

Skip navigation links


Copyright © 2014, Oracle and/or its affiliates. All rights reserved.