- 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 Summary
Constructors
Creates a new instance with the specified
Revision
and value.
-
Method Summary
boolean
int
Returns the
Revision
of the latest known value.
Returns the latest known value.
-
Constructor Details
-
Latest
public Latest(Revision revision,
@Nullable
U value)
Creates a new instance with the specified
Revision
and value.
-
Method Details
-
revision
Returns the
Revision
of the latest known value.
-
value
@Nullable
public U value()
Returns the latest known value.
-
-
-