public interface RevisionMetadata<N extends Number & Comparable<N>>
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getDelegate()
Returns the underlying revision metadata which might provider more detailed implementation specific information.
|
default Instant |
getRequiredRevisionInstant()
Returns the time stamp of the revision, immediately failing on absence.
|
default N |
getRequiredRevisionNumber()
Returns the revision number of the revision, immediately failing on absence.
|
Optional<Instant> |
getRevisionInstant()
Returns the timestamp of the revision.
|
Optional<N> |
getRevisionNumber()
Returns the revision number of the revision.
|
Optional<N> getRevisionNumber()
default N getRequiredRevisionNumber()
IllegalStateException - if no revision number is available.Optional<Instant> getRevisionInstant()
default Instant getRequiredRevisionInstant()
IllegalStateException - if no revision date is available.<T> T getDelegate()
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.