Class BoundLiteralPredicate<T>

All Implemented Interfaces:
Serializable, Bound<Boolean>, Expression

public class BoundLiteralPredicate<T> extends BoundPredicate<T>
See Also:
  • Method Details Link icon

    • negate Link icon

      public Expression negate()
      Description copied from interface: Expression
      Returns the negation of this expression, equivalent to not(this).
    • literal Link icon

      public Literal<T> literal()
    • isLiteralPredicate Link icon

      public boolean isLiteralPredicate()
      Overrides:
      isLiteralPredicate in class BoundPredicate<T>
    • asLiteralPredicate Link icon

      public BoundLiteralPredicate<T> asLiteralPredicate()
      Overrides:
      asLiteralPredicate in class BoundPredicate<T>
    • test Link icon

      public boolean test(T value)
      Specified by:
      test in class BoundPredicate<T>
    • isEquivalentTo Link icon

      public boolean isEquivalentTo(Expression expr)
      Description copied from interface: Expression
      Returns whether this expression will accept the same values as another.

      If this returns true, the expressions are guaranteed to return the same evaluation for the same input. However, if this returns false the expressions may return the same evaluation for the same input. That is, expressions may be equivalent even if this returns false.

      For best results, rewrite not and bind expressions before calling this method.

      Parameters:
      expr - another expression
      Returns:
      true if the expressions are equivalent
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object