Class BoolVar

java.lang.Object
com.google.ortools.sat.IntVar
com.google.ortools.sat.BoolVar
All Implemented Interfaces:
LinearArgument, Literal

public final class BoolVar extends IntVar implements Literal
An Boolean variable.
  • Method Details

    • not

      public Literal not()
      Returns the negation of a boolean variable.
      Specified by:
      not in interface Literal
    • toString

      public String toString()
      Overrides:
      toString in class IntVar