T
- public abstract class AbstractChangeLog<T extends Operation> extends Object implements ChangeLog
ChangeLog
implementations maintains a list of operations
of type type T
.Modifier and Type | Field and Description |
---|---|
protected List<T> |
operations
Operation s kept in this change log. |
Constructor and Description |
---|
AbstractChangeLog() |
Modifier and Type | Method and Description |
---|---|
void |
addOperation(T op)
Added an operation to the list of
operations . |
Batch |
apply(Batch batch)
This implementation applies each of the operation maintained by
this change log to the passed
batch . |
boolean |
equals(AbstractChangeLog<?> other) |
boolean |
equals(Object other) |
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addNode, addProperty, addProperty, move, remove, reorderNodes, setMixins, setPrimaryType, setTree, setValue, setValue
public void addOperation(T op) throws RepositoryException
operations
.op
- Operation
to addRepositoryException
public Batch apply(Batch batch) throws RepositoryException
batch
.
Applies the Operation
s contained in this change log to
the passed batch
.apply
in interface ChangeLog
batch
passed in as argument with the
operations from this change log applied.RepositoryException
public boolean equals(AbstractChangeLog<?> other)
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.