com.almworks.jira.structure.api.forest
Class ForestUpdate.Incremental

java.lang.Object
  extended by com.almworks.jira.structure.api.forest.ForestUpdate
      extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.almworks.jira.structure.api.forest.ForestUpdate
ForestUpdate.Empty, ForestUpdate.Full, ForestUpdate.Incremental
 
Constructor Summary
ForestUpdate.Incremental(long structureId, long lastVersion, long fromVersion, List<ForestOp> updates)
           
 
Method Summary
 long getFromVersion()
           
 List<ForestOp> getUpdates()
           
 
Methods inherited from class com.almworks.jira.structure.api.forest.ForestUpdate
getStructureId, getVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForestUpdate.Incremental

public ForestUpdate.Incremental(long structureId,
                                long lastVersion,
                                long fromVersion,
                                List<ForestOp> updates)
Method Detail

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.