Class BetweenSpacePredicate

All Implemented Interfaces:
ISpacePredicate, SmartExternalizable, Externalizable, Serializable

public class BetweenSpacePredicate extends AbstractSpacePredicate
Represents a Between predicate. This is equivalent to using an And Predicate with GreaterEquals and LessEquals.
Since:
7.1
Author:
Niv Ingberg
See Also:
  • Constructor Details

    • BetweenSpacePredicate

      public BetweenSpacePredicate()
      Default constructor for Externalizable.
    • BetweenSpacePredicate

      public BetweenSpacePredicate(Comparable<?> low, Comparable<?> high)
      Creates a Between predicate.
      Parameters:
      low - Low limit for expected value.
      high - High limit for expected value.
    • BetweenSpacePredicate

      public BetweenSpacePredicate(Comparable<?> low, Comparable<?> high, Comparator<?> comparator)
      Creates a Between predicate.
      Parameters:
      low - Low limit for expected value.
      high - High limit for expected value.
      comparator - Comparator to use for comparison.
    • BetweenSpacePredicate

      public BetweenSpacePredicate(Comparable<?> low, Comparable<?> high, boolean lowInclusive, boolean highInclusive)
      Creates a Between predicate.
      Parameters:
      low - Low limit for expected value.
      high - High limit for expected value.
      lowInclusive - Determines if low limit comparison is inclusive.
      highInclusive - Determines if high limit comparison is inclusive.
    • BetweenSpacePredicate

      public BetweenSpacePredicate(Comparable<?> low, Comparable<?> high, Comparator<?> comparator, boolean lowInclusive, boolean highInclusive)
      Creates a Between predicate.
      Parameters:
      low - Low limit for expected value.
      high - High limit for expected value.
      comparator - Comparator to use for comparison.
      lowInclusive - Determines if low limit comparison is inclusive.
      highInclusive - Determines if high limit comparison is inclusive.
  • Method Details