java.lang.Object
org.silverpeas.components.jdbcconnector.service.comparators.StrictSuperiority
All Implemented Interfaces:
FieldValueComparator

public class StrictSuperiority extends Object implements FieldValueComparator
The strict superiority comparator
Author:
mmoquillon
  • Constructor Details

    • StrictSuperiority

      public StrictSuperiority()
  • Method Details

    • compare

      public <T> boolean compare(Comparable<T> value, Comparable<T> referenceValue)
      Description copied from interface: FieldValueComparator
      Compares the value with the reference value. The two specified values must be comparable.
      Specified by:
      compare in interface FieldValueComparator
      Parameters:
      value - the value to compare.
      referenceValue - the reference value the value is compared to.
      Returns:
      true if the comparing predicate between the two specified values is satisfied.