public class AttributeChanges extends java.lang.Object implements java.lang.Iterable<AttributeChangeOperation>, java.io.Serializable
| Constructor and Description |
|---|
AttributeChanges()
Creates new AttributeChangeCollection
|
AttributeChanges(java.util.Collection<AttributeChangeOperation> collection)
Creates new AttributeChanges with the given
AttributeChangeOperation elements.
|
| 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
|
public AttributeChanges()
public AttributeChanges(java.util.Collection<AttributeChangeOperation> collection)
collection - collection of AttributeChangeOperation elementspublic AttributeChangeIterator iterator()
iterator in interface java.lang.Iterable<AttributeChangeOperation>public void add(AttributeChangeOperation element)
element - An element to add to the collectionpublic void addAll(AttributeChanges changes)
changes - AttributeChanges object to add to the collection.public int size()
public java.util.Collection<AttributeChangeOperation> values()
public AttributeChangeOperation get(java.lang.String name, java.lang.Object value)
name - The name of the AttributeValue object to retrievevalue - The value of the change operation to retrieve forpublic AttributeChangeOperation get(java.lang.String name)
name - The name of the AttributeValue object to retrievepublic java.lang.String toString()
toString in class java.lang.Object