T
- public abstract class AbstractChangeLog<T extends Operation> extends java.lang.Object implements ChangeLog
ChangeLog
implementations maintains a list of operations
of type type T
.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(java.lang.Object other) |
int |
hashCode() |
java.lang.String |
toString() |
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 java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public boolean equals(AbstractChangeLog<?> other)
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2010 - 2020 Adobe. All Rights Reserved