edu.internet2.middleware.ldappc.synchronize
Class AttributeModifier.Values

java.lang.Object
  extended by edu.internet2.middleware.ldappc.synchronize.AttributeModifier.Values
All Implemented Interfaces:
Iterable<String>
Enclosing class:
AttributeModifier

public class AttributeModifier.Values
extends Object
implements Iterable<String>

Implements optional case ignoring set by backing it with a Map, mapping the possibly lowercased values to the actual values.


Constructor Summary
AttributeModifier.Values()
           
 
Method Summary
 boolean add(String value)
          Adds the specified element to the values if it is not already present.
 boolean addAll(Iterable<String> iterable)
          Adds all of the elements in the specified iterable to the values if they're not already present.
 void clear()
          Removes all of the elements from the values.
 boolean contains(Object object)
          Returns true if the values contain the specified element.
 Iterator<String> iterator()
          
 boolean remove(String value)
          Removes the specified element from the values if it is present.
 int size()
          Returns the number of elements in the values.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeModifier.Values

public AttributeModifier.Values()
Method Detail

add

public boolean add(String value)
Adds the specified element to the values if it is not already present.

Parameters:
value - element to be added to the values.
Returns:
true if this set did not already contain the specified element.

addAll

public boolean addAll(Iterable<String> iterable)
Adds all of the elements in the specified iterable to the values if they're not already present.

Parameters:
iterable - iterable whose elements are to be added to the values.
Returns:
true if the values changed as a result of the call.

clear

public void clear()
Removes all of the elements from the values.


iterator

public Iterator<String> iterator()

Specified by:
iterator in interface Iterable<String>

contains

public boolean contains(Object object)
Returns true if the values contain the specified element.

Parameters:
object - element whose presence in the values is to be tested.
Returns:
true if the values contains the specified element.

remove

public boolean remove(String value)
Removes the specified element from the values if it is present.

Parameters:
value - element to be removed from the values, if present.
Returns:
true if the value was present in the values.

size

public int size()
Returns the number of elements in the values.

Returns:
the number of elements in the values.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 Internet2. All Rights Reserved.