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 LocalDateTime |
getRequiredRevisionDate()
Deprecated.
Use
getRevisionInstant() instead. |
default Instant |
getRequiredRevisionInstant()
Returns the timestamp of the revision, immediately failing on absence.
|
default N |
getRequiredRevisionNumber()
Returns the revision number of the revision, immediately failing on absence.
|
Optional<LocalDateTime> |
getRevisionDate()
Deprecated.
use
getRevisionInstant() instead. |
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.@Deprecated Optional<LocalDateTime> getRevisionDate()
getRevisionInstant()
instead.Optional<Instant> getRevisionInstant()
@Deprecated default LocalDateTime getRequiredRevisionDate()
getRevisionInstant()
instead.IllegalStateException
- if no revision date is available.default Instant getRequiredRevisionInstant()
IllegalStateException
- if no revision date is available.<T> T getDelegate()
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.