Interface Version
- All Superinterfaces:
Comparable<Version>, OsidPrimitive, OsidPrimitive, Serializable, Version
A Version represents a version in a scheme.
-
Method Summary
Modifier and TypeMethodDescriptionString[]Gets the components of the version.Gets the versioining scheme as a type.Methods inherited from interface OsidPrimitive
toStringMethods inherited from interface Version
compareTo, equals, hashCode, isExclusive, isInclusive, isNewer, isOlderModifier and TypeMethodDescriptionintCompares this Version with the specified Version to determine the natural order.booleanDetermines if the givenVersionis equal to this one.inthashCode()Returns a hash code value for thisVersionbased on the schema and components.booleanisExclusive(Version version) Tests if this Version excludes the given version.booleanisInclusive(Version version) Tests if this Version includes the given version.booleanTests if this Version is more recent than the given Version.booleanTests 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.
-