Class ConstantValueComparator
- java.lang.Object
-
- com.yahoo.search.grouping.request.ConstantValueComparator
-
- All Implemented Interfaces:
Comparator<ConstantValue>
public class ConstantValueComparator extends Object implements Comparator<ConstantValue>
This class compares two constant values, and takes into account that one of the arguments may be the very special infinity value.- Author:
- Ulf Lilleengen
-
-
Constructor Summary
Constructors Constructor Description ConstantValueComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(ConstantValue lhs, ConstantValue rhs)
-
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
-
-
-
-
Method Detail
-
compare
public int compare(ConstantValue lhs, ConstantValue rhs)
- Specified by:
compare
in interfaceComparator<ConstantValue>
-
-