com.ibm.itim.common

Class AttributeChanges

  • java.lang.Object
    • com.ibm.itim.common.AttributeChanges
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<AttributeChangeOperation>


    public class AttributeChanges
    extends java.lang.Object
    implements java.lang.Iterable<AttributeChangeOperation>, java.io.Serializable
    Encapsulates a collection of AttributeChangeOperation objects
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void add(AttributeChangeOperation element)
      Add a new element to the collection
      void addAll(AttributeChanges changes)
      Add all elements in given AttributeChanges objects to the collection
      AttributeChangeOperation get(java.lang.String name)
      Get a single AttributeChangeOperation containing the AttributeValue with the AttributeValue object with the given name.
      AttributeChangeOperation get(java.lang.String name, java.lang.Object value)
      Get a single AttributeChangeOperation containing the AttributeValue with the AttributeValue object with the given name and value.
      AttributeChangeIterator iterator()
      Creates an iterator to iterate over elements in the collection
      int size()
      Returns the number of AttributeChangeOperation objects
      java.lang.String toString()
      This method will return a string representation of this object.
      java.util.Collection<AttributeChangeOperation> values()
      Get the collection of AttributeChangeOperation objects
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • AttributeChanges

        public AttributeChanges()
        Creates new AttributeChangeCollection
      • AttributeChanges

        public AttributeChanges(java.util.Collection<AttributeChangeOperation> collection)
        Creates new AttributeChanges with the given AttributeChangeOperation elements.
        Parameters:
        collection - collection of AttributeChangeOperation elements
    • Method Detail

      • iterator

        public AttributeChangeIterator iterator()
        Creates an iterator to iterate over elements in the collection
        Specified by:
        iterator in interface java.lang.Iterable<AttributeChangeOperation>
        Returns:
        An iterator for the collection
      • add

        public void add(AttributeChangeOperation element)
        Add a new element to the collection
        Parameters:
        element - An element to add to the collection
      • addAll

        public void addAll(AttributeChanges changes)
        Add all elements in given AttributeChanges objects to the collection
        Parameters:
        changes - AttributeChanges object to add to the collection.
      • size

        public int size()
        Returns the number of AttributeChangeOperation objects
        Returns:
        the number of AttributeChangeOperation objects
      • values

        public java.util.Collection<AttributeChangeOperation> values()
        Get the collection of AttributeChangeOperation objects
        Returns:
        the collection of AttributeChangeOperation objects
      • get

        public AttributeChangeOperation get(java.lang.String name,
                                            java.lang.Object value)
        Get a single AttributeChangeOperation containing the AttributeValue with the AttributeValue object with the given name and value. If there are more than one the first one will be returned. It will return null if no such AttributeChangeOperation is found.
        Parameters:
        name - The name of the AttributeValue object to retrieve
        value - The value of the change operation to retrieve for
        Returns:
        An AttributeChangeOperation containing a single AttributeValue object / null if no matching ACO found
      • get

        public AttributeChangeOperation get(java.lang.String name)
        Get a single AttributeChangeOperation containing the AttributeValue with the AttributeValue object with the given name. If there are more than one the first one will be returned. It will return null if no such AttributeChangeOperation is found.
        Parameters:
        name - The name of the AttributeValue object to retrieve
        Returns:
        An AttributeChangeOperation containing a single AttributeValue object / null if no matching ACO found
      • toString

        public java.lang.String toString()
        This method will return a string representation of this object.
        Overrides:
        toString in class java.lang.Object
        Returns:
        String object containing textual description of this event.