public interface RevisionMetadata<N extends Number & Comparable<N>>
Modifier and Type | Interface and Description |
---|---|
static class |
RevisionMetadata.RevisionType
The type of a
Revision . |
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.
|
default RevisionMetadata.RevisionType |
getRevisionType()
Returns the
RevisionMetadata.RevisionType of this change. |
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()
default RevisionMetadata.RevisionType getRevisionType()
RevisionMetadata.RevisionType
of this change. If the RevisionMetadata.RevisionType
cannot be determined, this method
returns RevisionMetadata.RevisionType.UNKNOWN
.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.