@PublicApi public abstract class VersionedForestUpdate extends VersionedDataUpdate
ForestSource
.ForestSource
Modifier and Type | Class and Description |
---|---|
static class |
VersionedForestUpdate.Full
Represents a full update.
|
static class |
VersionedForestUpdate.Incremental
Represents an incremental update.
|
Modifier and Type | Method and Description |
---|---|
VersionedForestUpdate.Incremental |
asIncremental()
Casts this update to
VersionedForestUpdate.Incremental type. |
VersionedForest |
getLatest()
Returns the full forest.
|
getVersion, isEmpty, isFull, isIncremental
@NotNull public VersionedForest getLatest()
VersionedForest
is immutable and the source can just share the link to the most recent forest it has.@NotNull public VersionedForestUpdate.Incremental asIncremental()
VersionedForestUpdate.Incremental
type. You first need to make sure this is an incremental type.ClassCastException
- if the update is not incrementalCopyright © 2016 ALM Works. All Rights Reserved.