cpw.mods.fml.common.versioning

## Class ComparableVersion

- java.lang.Object
- - cpw.mods.fml.common.versioning.ComparableVersion

- All Implemented Interfaces:
    java.lang.Comparable<ComparableVersion>

      public class ComparableVersion
      extends java.lang.Object
      implements java.lang.Comparable<ComparableVersion>

  Generic implementation of version comparison.

  Features:

  - mixing of '`-`' (dash) and '`.`' (dot) separators,
  - transition between characters and digits also constitutes a separator: `1.0alpha1 => [1, 0, alpha, 1]`
  - unlimited number of version components,
  - version components in the text can be digits or strings,
  - strings are checked for well-known qualifiers and the qualifier ordering is used for version ordering. Well-known qualifiers (case insensitive) are:
    - `snapshot`
    - `alpha` or `a`
    - `beta` or `b`
    - `milestone` or `m`
    - `rc` or `cr`
    - `(the empty string)` or `ga` or `final`
    - `sp`
    Unknown qualifiers are considered after known qualifiers, with lexical order (always case insensitive),
  - a dash usually precedes a qualifier, and is always less important than something preceded with a dot.
  See Also:
    "Versioning" on Maven Wiki

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ComparableVersion(java.lang.String version)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compareTo(ComparableVersion o)`
    `boolean` | `equals(java.lang.Object o)`
    `int` | `hashCode()`
    `void` | `parseVersion(java.lang.String version)`
    `java.lang.String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### ComparableVersion

          public ComparableVersion(java.lang.String version)

  - ### Method Detail

    - #### parseVersion

          public final void parseVersion(java.lang.String version)

    - #### compareTo

          public int compareTo(ComparableVersion o)

      Specified by:
        `compareTo` in interface `java.lang.Comparable<ComparableVersion>`

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object o)

      Overrides:
        `equals` in class `java.lang.Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `java.lang.Object`