Class VersionedForest

Object
VersionedForest

@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.
See Also:
  • Field Details

  • Constructor Details

    • VersionedForest

      public VersionedForest(@NotNull Forest forest, @NotNull DataVersion version)
      Constructs an instance.
      Parameters:
      forest - the forest, must be immutable!
      version - version associated with the forest
  • Method Details

    • getForest

      @NotNull public Forest getForest()
      Returns the forest.
    • getVersion

      @NotNull public DataVersion getVersion()
      Returns the version.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object