Package org.plumelib.util
Class StringsPlume.VersionNumberComparator
java.lang.Object
org.plumelib.util.StringsPlume.VersionNumberComparator
- All Implemented Interfaces:
Comparator<String>
- Enclosing class:
- StringsPlume
public static class StringsPlume.VersionNumberComparator
extends Object
implements Comparator<String>
A comparator that compares version numbers. It must only be invoked on strings that are version
numbers.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
VersionNumberComparator
public VersionNumberComparator()Creates a new VersionNumberComparator.
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<String>
-