T
- the type of the version indicatorpublic interface Versionable<T extends Comparable<? super T>>
Modifier and Type | Method | Description |
---|---|---|
T |
getVersionIndicator() |
Get the version indicator for this object.
|
void |
incrementVersion() |
Update the version to the next logical version indicator.
|
default boolean |
isVersioningEnabled() |
Return the value specifying if the versioning is enabled.
|
T getVersionIndicator()
void incrementVersion()
UnsupportedOperationException
- if the object is immutable or
if the object does not know how to increment its own version
indicatordefault boolean isVersioningEnabled()