Interface Version<V extends Version<V>>

All Superinterfaces:
Comparable<V>

public interface Version<V extends Version<V>> extends Comparable<V>
Encapsulates the version of some metadata.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
    compareTo(V version)
     
    int
    Returns the major component of this version.
    int
    Returns the minor component of this version.
  • Method Details

    • major

      int major()
      Returns the major component of this version.
      Returns:
      the major component of this version.
    • minor

      int minor()
      Returns the minor component of this version.
      Returns:
      the manor component of this version.
    • compareTo

      default int compareTo(V version)
      Specified by:
      compareTo in interface Comparable<V extends Version<V>>