Class CriteriaDefinition.Predicate

java.lang.Object
org.springframework.data.cassandra.core.query.CriteriaDefinition.Predicate
Enclosing interface:
CriteriaDefinition

public static class CriteriaDefinition.Predicate extends Object
Represents an operator associated with its value.
Since:
2.0
Author:
Mark Paluch
  • Constructor Details

  • Method Details

    • getOperator

      public CriteriaDefinition.Operator getOperator()
      Returns:
      the operator, such as =, >=, LIKE.
    • getValue

      public @Nullable Object getValue()
      Returns:
      the match value.
    • as

      public <R> R as(Function<Object, ? extends R> mappingFunction)
      This method allows the application of a function to this CriteriaDefinition.Predicate value. The function should expect a single Object argument and produce an R result. Any exception thrown by f() will be propagated to the caller.
      Type Parameters:
      R -
      Returns:
      the result of the mappingFunction.
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object