Package org.aksw.commons.util.range
Class CmpFactory.CmpMin<T>
java.lang.Object
org.aksw.commons.util.range.CmpFactory.CmpMin<T>
- All Implemented Interfaces:
Comparable<Cmp<T>>,Cmp<T>
- Enclosing class:
- CmpFactory<T>
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CmpMin
public CmpMin()
-
-
Method Details
-
isMin
public boolean isMin()Description copied from interface:CmpWhether this cmp instance is the minimum. compareTo(min, x) returns 0 iff x is min and -1 otherwise -
isMax
public boolean isMax()Description copied from interface:CmpWhether this cmp instance is the maximum. compareTo(max, x) returns 0 iff x is ax and 1 otherwise -
hasValue
public boolean hasValue()Description copied from interface:CmpWhether this cmp instance carries a value. -
getValue
Description copied from interface:CmpGet the value of this cmp. Raises an exception if there is no value. -
compareTo
- Specified by:
compareToin interfaceComparable<T>
-