Package lu.kbra.modelizer_next.common
Class ChannelComparator
java.lang.Object
lu.kbra.modelizer_next.common.ChannelComparator
- All Implemented Interfaces:
Comparator<String>
Compares parsed versions while respecting the release channel ordering.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ChannelComparatorstatic final Comparator<VersionComparator.ParsedVersion> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
COMPARATOR
-
PARSED_COMPARATOR
-
-
Constructor Details
-
ChannelComparator
public ChannelComparator()
-
-
Method Details
-
compare
Compares two values using this comparator's ordering rules.- Specified by:
comparein interfaceComparator<String>- Parameters:
left- text value for leftright- text value for right- Returns:
- a negative value, zero, or a positive value according to the ordering rules
-