public interface Progressable
Modifier and Type | Method and Description |
---|---|
default boolean |
achieved()
Gets whether this
Progressable is achieved. |
Optional<Instant> |
get()
Gets the time that the
Progressable was
achieved if present. |
Instant |
grant()
Grants this
Progressable , if achieved before
that time will be returned. |
Optional<Instant> |
revoke()
Revokes the
Progressable status. |
default boolean achieved()
Progressable
is achieved.Optional<Instant> get()
Progressable
was
achieved if present.Instant grant()
Progressable
, if achieved before
that time will be returned.Optional<Instant> revoke()
Progressable
status. The time that the Progressable
was achieved before will be returned if present.