Module jakarta.data

Interface BooleanLiteral

All Superinterfaces:
BooleanExpression<Object>, ComparableExpression<Object,Boolean>, ComparableLiteral<Boolean>, Expression<Object,Boolean>, Literal<Boolean>

public interface BooleanLiteral extends ComparableLiteral<Boolean>, BooleanExpression<Object>

A literal for a boolean value.

Since:
1.1
  • Method Details

    • of

      static BooleanLiteral of(boolean value)

      Creates a BooleanLiteral that represents the given value.

      Parameters:
      value - a boolean value.
      Returns:
      a BooleanLiteral representing the value.
    • toString

      String toString()

      Returns the text TRUE or FALSE representing the value.

      Specified by:
      toString in interface ComparableLiteral<Boolean>
      Specified by:
      toString in interface Literal<Boolean>
      Overrides:
      toString in class Object
      Returns:
      TRUE or FALSE.