Class Latest<U>

java.lang.Object
com.linecorp.centraldogma.client.Latest<U>
Type Parameters:
U - the value type

public final class Latest<U> extends Object
An immutable holder of the latest known value and its Revision retrieved by a Watcher.
  • Constructor Details

    • Latest

      public Latest(Revision revision, @Nullable U value)
      Creates a new instance with the specified Revision and value.
  • Method Details

    • revision

      public Revision revision()
      Returns the Revision of the latest known value.
    • value

      @Nullable public U value()
      Returns the latest known value.
    • 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