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 Detail

      • getVersion

        V getVersion()
        Returns the version of this object.
        Returns:
        the version of this object.
      • 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.