public class ModificationSet extends Object implements Serializable, Iterable<Modification>
This class is not thread safe.
Constructor and Description |
---|
ModificationSet() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(DocumentRef ref,
int modifType) |
boolean |
add(Modification modif) |
boolean |
contains(DocumentRef ref) |
Modification |
get(int index) |
Modification |
getModifcation(DocumentRef ref)
Deprecated.
|
Modification |
getModification(DocumentRef ref)
Deprecated.
returns a merged modification, unsafe to use this where order
of notifications is important
|
int |
indexOf(DocumentRef ref) |
Iterator<Modification> |
iterator() |
Modification |
remove(int index) |
Modification |
removeModification(DocumentRef ref)
Deprecated.
returns a merged modification, unsafe to use this where order
of notifications is important
|
int |
size() |
Modification[] |
toArray() |
public int size()
public boolean add(DocumentRef ref, int modifType)
public boolean add(Modification modif)
public boolean contains(DocumentRef ref)
public final Modification get(int index)
@Deprecated public Modification getModification(DocumentRef ref)
ref
- The document ref@Deprecated public Modification getModifcation(DocumentRef ref)
public int indexOf(DocumentRef ref)
public Modification remove(int index)
@Deprecated public Modification removeModification(DocumentRef ref)
ref
- The document refpublic Modification[] toArray()
public Iterator<Modification> iterator()
iterator
in interface Iterable<Modification>
Copyright © 2011 Nuxeo SA. All Rights Reserved.