com.almworks.jira.structure.api.forest
Class ForestUpdate.Incremental
java.lang.Object
com.almworks.jira.structure.api.forest.ForestUpdate
com.almworks.jira.structure.api.forest.ForestUpdate.Incremental
- Enclosing class:
- ForestUpdate
public static class ForestUpdate.Incremental
- extends ForestUpdate
Incremental update means that the client code should apply a series of transformations
to bring their version of the forest to the latest version.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ForestUpdate.Incremental
public ForestUpdate.Incremental(long structureId,
long lastVersion,
long fromVersion,
List<ForestOp> updates)
getFromVersion
public long getFromVersion()
- Returns:
- the version of the forest that this update is for. Before applying the operations,
the client code should ensure that they have exactly this version of the forest.
getUpdates
@NotNull
public List<ForestOp> getUpdates()
- Returns:
- a read-only list of the polymorphic updates for the forest - essentially, a diff from forest
at version
getFromVersion() and forest at version ForestUpdate.getVersion()
Copyright © 2013 ALMWorks. All Rights Reserved.