Class VersionedForestUpdate
Object
VersionedDataUpdate
VersionedForestUpdate
- Direct Known Subclasses:
VersionedForestUpdate.Full,VersionedForestUpdate.Incremental
Represents an update from
ForestSource.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents a full update.static final classRepresents an incremental update. -
Method Summary
Modifier and TypeMethodDescriptionCasts this update toVersionedForestUpdate.Incrementaltype.Returns the full forest.Methods inherited from class VersionedDataUpdate
getVersion, isEmpty, isFull, isIncremental
-
Method Details
-
getLatest
Returns the full forest. This method is provided for all updates (not only to full updates) becauseVersionedForestis immutable and the source can just share the link to the most recent forest it has. -
asIncremental
Casts this update toVersionedForestUpdate.Incrementaltype. You first need to make sure this is an incremental type.- Returns:
- this
- Throws:
ClassCastException- if the update is not incremental
-
getHealth
-