@PublicApi @Immutable public final class VersionedForest extends Object
VersionedForest represents a Forest, tagged with a DataVersion. It is used by
ForestSource to provide versioned updates about forest content.ForestSource,
VersionedForestUpdate| Modifier and Type | Field and Description |
|---|---|
static VersionedForest |
EMPTY |
| Constructor and Description |
|---|
VersionedForest(Forest forest,
DataVersion version)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Forest |
getForest()
Returns the forest.
|
DataVersion |
getVersion()
Returns the version.
|
int |
hashCode() |
String |
toString() |
public static final VersionedForest EMPTY
public VersionedForest(@NotNull
Forest forest,
@NotNull
DataVersion version)
forest - the forest, must be immutable!version - version associated with the forest@NotNull public Forest getForest()
@NotNull public DataVersion getVersion()
Copyright © 2023 ALM Works. All Rights Reserved.