Class Between

java.lang.Object
org.projog.clp.compare.Between
All Implemented Interfaces:
Constraint, Expression

public final class Between extends Object implements Constraint
Enforces that the possible values of a given Expression are within the given range.
  • Field Details

    • e

      private final Expression e
    • min

      private final long min
    • max

      private final long max
  • Constructor Details

    • Between

      public Between(Expression e, long min, long max)
      Enforces that the possible values of the given Expression are within the given range (inclusive).
      Parameters:
      e -
      min - the minimum possible value (inclusive) for the expression
      max - the maximum possible value (inclusive) for the expression
  • Method Details