Groovy Documentation

org.codehaus.groovy.grails.plugins
[Groovy] Class VersionComparator

java.lang.Object
  org.codehaus.groovy.grails.plugins.VersionComparator
All Implemented Interfaces:
java.util.Comparator

class VersionComparator
extends java.lang.Object

Method Summary
int compare(java.lang.Object o1, java.lang.Object o2)

protected java.lang.Object 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 java.lang.Object isSnapshot(java.lang.String version)

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), 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

compare

int compare(java.lang.Object o1, java.lang.Object o2)


deSnapshot

protected java.lang.Object deSnapshot(java.lang.String version)
Removes any suffixes that indicate that the version is a kind of snapshot


equals

boolean equals(java.lang.Object obj)


isSnapshot

protected java.lang.Object isSnapshot(java.lang.String version)


 

Groovy Documentation