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>

public static class CmpFactory.CmpMin<T> extends Object implements Cmp<T>
  • Constructor Details

    • CmpMin

      public CmpMin()
  • Method Details

    • isMin

      public boolean isMin()
      Description copied from interface: Cmp
      Whether this cmp instance is the minimum. compareTo(min, x) returns 0 iff x is min and -1 otherwise
      Specified by:
      isMin in interface Cmp<T>
    • isMax

      public boolean isMax()
      Description copied from interface: Cmp
      Whether this cmp instance is the maximum. compareTo(max, x) returns 0 iff x is ax and 1 otherwise
      Specified by:
      isMax in interface Cmp<T>
    • hasValue

      public boolean hasValue()
      Description copied from interface: Cmp
      Whether this cmp instance carries a value.
      Specified by:
      hasValue in interface Cmp<T>
    • getValue

      public T getValue()
      Description copied from interface: Cmp
      Get the value of this cmp. Raises an exception if there is no value.
      Specified by:
      getValue in interface Cmp<T>
    • compareTo

      public int compareTo(Cmp<T> o)
      Specified by:
      compareTo in interface Comparable<T>