@Immutable public static final class ChildReferences.NoChanges extends Object implements ChildReferences.Changes
| Modifier and Type | Field and Description |
|---|---|
protected static Iterator<ChildReferences.ChildInsertions> |
NO_INSERTIONS_ITERATOR |
| Constructor and Description |
|---|
ChildReferences.NoChanges() |
| Modifier and Type | Method and Description |
|---|---|
ChildReference |
inserted(NodeKey key)
Get the child reference for the inserted node with the supplied key.
|
int |
insertionCount()
Get the number of child references that were inserted.
|
int |
insertionCount(Name name)
Get the number of child references that were inserted with the given name.
|
Iterator<ChildReferences.ChildInsertions> |
insertions(Name name)
Get the references to the children with the supplied name that were inserted.
|
ChildReferences.ChildInsertions |
insertionsBefore(ChildReference key)
Get the set of child references that were inserted before the node with the supplied key.
|
boolean |
isEmpty()
Determine if this set of changes is empty.
|
boolean |
isRemoved(ChildReference key)
Determine whether the supplied child reference was removed.
|
boolean |
isRenamed(ChildReference ref)
Determine whether the supplied child reference was renamed.
|
boolean |
isRenamed(Name newName)
Determine whether any of the child references were renamed to the supplied name.
|
int |
removalCount()
Get the number of child references that were removed.
|
int |
renameCount()
Get the number of child references that were renamed.
|
Name |
renamed(NodeKey key)
Return the new name for the child node with the supplied key.
|
protected static final Iterator<ChildReferences.ChildInsertions> NO_INSERTIONS_ITERATOR
public boolean isEmpty()
ChildReferences.ChangesisEmpty in interface ChildReferences.Changespublic int insertionCount()
ChildReferences.ChangesinsertionCount in interface ChildReferences.Changespublic int insertionCount(Name name)
ChildReferences.ChangesinsertionCount in interface ChildReferences.Changesname - the Name of a child, never nullpublic int removalCount()
ChildReferences.ChangesremovalCount in interface ChildReferences.Changespublic int renameCount()
ChildReferences.ChangesrenameCount in interface ChildReferences.Changespublic Name renamed(NodeKey key)
ChildReferences.Changesrenamed in interface ChildReferences.Changeskey - the child node's key; may not be nullpublic Iterator<ChildReferences.ChildInsertions> insertions(Name name)
ChildReferences.Changesinsertions in interface ChildReferences.Changesname - the name; may not be nullpublic ChildReference inserted(NodeKey key)
ChildReferences.Changesinserted in interface ChildReferences.Changeskey - the node key for the inserted node; may not be nullpublic ChildReferences.ChildInsertions insertionsBefore(ChildReference key)
ChildReferences.ChangesinsertionsBefore in interface ChildReferences.Changeskey - the node key for the node before which the inserted nodes are to be returned; may not be nullpublic boolean isRemoved(ChildReference key)
ChildReferences.ChangesisRemoved in interface ChildReferences.Changeskey - the reference; may not be nullpublic boolean isRenamed(ChildReference ref)
ChildReferences.ChangesisRenamed in interface ChildReferences.Changesref - the reference; may not be nullpublic boolean isRenamed(Name newName)
ChildReferences.ChangesisRenamed in interface ChildReferences.ChangesnewName - the new name; may not be nullCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.