T - the type of the version indicator
public interface Versionable<T extends Comparable<? super T>>
| Modifier and Type | Method and 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()