Package: grails.plugins

## [Groovy] Class VersionComparator

- grails.plugins.VersionComparator

- All Implemented Interfaces and Traits:
    java.util.Comparator

      @groovy.transform.CompileStatic
      class VersionComparator
      extends java.lang.Object

  A comparator capable of sorting versions from from newest to oldest

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `int` | `compare(java.lang.String o1, java.lang.String o2)`
    `` | `protected java.lang.String` | `deSnapshot(java.lang.String version)` Removes any suffixes that indicate that the version is a kind of snapshot
    `` | `boolean` | `equals(java.lang.Object obj)`
    `` | `protected boolean` | `isSnapshot(java.lang.String version)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class java.lang.Object` | `java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()`

- - ### Method Detail

    - #### int compare(java.lang.String o1, java.lang.String o2)

    - #### @groovy.transform.CompileStatic protected java.lang.String deSnapshot(java.lang.String version)

      Removes any suffixes that indicate that the version is a kind of snapshot

    - #### boolean equals(java.lang.Object obj)

    - #### @groovy.transform.CompileStatic protected boolean isSnapshot(java.lang.String version)