Class GreaterSpacePredicate

All Implemented Interfaces:
ISpacePredicate, SmartExternalizable, Externalizable, Serializable

public class GreaterSpacePredicate extends ComparableScalarSpacePredicate
An implementation of greater than comparison: This predicate returns true if and only if the predicate's argument is greater than the expected value. Comparison is performed using the compareTo method.
Since:
7.1
Author:
Niv ingberg
See Also:
  • Constructor Details

    • GreaterSpacePredicate

      public GreaterSpacePredicate()
      Default constructor for Externalizable.
    • GreaterSpacePredicate

      public GreaterSpacePredicate(Comparable<?> expectedValue)
      Creates a greater predicate using the specified expected value.
      Parameters:
      expectedValue - Expected value.
    • GreaterSpacePredicate

      public GreaterSpacePredicate(Comparable<?> expectedValue, Comparator<?> comparator)
      Creates a greater predicate using the specified expected value and comparator.
      Parameters:
      expectedValue - Expected value.
      comparator - Comparator to use while comparing.
  • Method Details