Package org.jboss.staxmapper
Interface Versioned<V extends Comparable<V>,T extends Versioned<V,T>>
-
public interface Versioned<V extends Comparable<V>,T extends Versioned<V,T>>A versioned object.- Author:
- Paul Ferraro
the version type the versioned object type
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Comparator<V>getComparator()Returns theComparatorused bysince(Versioned).VgetVersion()Returns the version of this object.default booleansince(T object)Indicates whether the version of this object is greater than or equal to the version of the specified versioned object.
-
-
-
Method Detail
-
getVersion
V getVersion()
Returns the version of this object.- Returns:
- the version of this object.
-
getComparator
default Comparator<V> getComparator()
Returns theComparatorused bysince(Versioned).- Returns:
- a version comparator
-
since
default boolean since(T object)
Indicates whether the version of this object is greater than or equal to the version of the specified versioned object.- Parameters:
object- a versioned object- Returns:
- true, if the version of this object is greater than or equal to the version of the specified versioned object, false otherwise.
-
-