Class CmpFactory<T>

java.lang.Object
org.aksw.commons.util.range.CmpFactory<T>

public class CmpFactory<T> extends Object
Factory for the creation of wrappers that make values comparable w.r.t. to the factory's configured comparator.
  • Field Details

    • comparator

      protected final Comparator<T> comparator
  • Constructor Details

    • CmpFactory

      public CmpFactory(Comparator<T> comparator)
  • Method Details

    • of

      public static <T> CmpFactory<T> of(Comparator<T> comparator)
    • wrap

      public Cmp<T> wrap(T value)
    • minValue

      public Cmp<T> minValue()
    • maxValue

      public Cmp<T> maxValue()