Interface Version

All Superinterfaces:
Comparable<Version>, OsidPrimitive, OsidPrimitive, Serializable, Version

public interface Version extends OsidPrimitive, Version

A Version represents a version in a scheme.

  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the components of the version.
    Gets the versioining scheme as a type.

    Methods inherited from interface OsidPrimitive

    toString
    Modifier and Type
    Method
    Description
    Returns a string representation of this OsidPrimitive.

    Methods inherited from interface Version

    compareTo, equals, hashCode, isExclusive, isInclusive, isNewer, isOlder
    Modifier and Type
    Method
    Description
    int
    compareTo(Version version)
    Compares this Version with the specified Version to determine the natural order.
    boolean
    Determines if the given Version is equal to this one.
    int
    Returns a hash code value for this Version based on the schema and components.
    boolean
    Tests if this Version excludes the given version.
    boolean
    Tests if this Version includes the given version.
    boolean
    isNewer(Version version)
    Tests if this Version is more recent than the given Version.
    boolean
    isOlder(Version version)
    Tests if this Version is older than the given Version.
  • Method Details

    • getScheme

      Type getScheme()
      Gets the versioining scheme as a type.
      Returns:
      the versioning scheme type
      Compliance:
      mandatory - This method must be implemented.
    • getComponents

      String[] getComponents()
      Gets the components of the version. In a major.minor[.maintenance[.build]] scheme, an example is {3, 0, 0}.
      Returns:
      the version components
      Compliance:
      mandatory - This method must be implemented.