Class VersionComparator
java.lang.Object
com.github.fungal.impl.classloader.VersionComparator
- All Implemented Interfaces:
Serializable,Comparator<String>
Version comparator
- Author:
- Jesper Pedersen
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
VersionComparator
public VersionComparator()Constructor
-
-
Method Details
-
compare
Compare- Specified by:
comparein interfaceComparator<String>- Parameters:
o1- First objecto2- Second object- Returns:
- -1 if o1 is less than o2; 0 if o1 equals o2; 1 if o1 is greater than o2
-
equals
Equals- Specified by:
equalsin interfaceComparator<String>- Overrides:
equalsin classObject- Parameters:
other- The other object- Returns:
- True if equal; otherwise false
-
hashCode
public int hashCode()Hash code
-