Class PredicateToExpressionAdapter

  • All Implemented Interfaces:
    org.apache.camel.Expression

    public final class PredicateToExpressionAdapter
    extends Object
    implements org.apache.camel.Expression
    To adapt Predicate as an Expression
    • Constructor Detail

      • PredicateToExpressionAdapter

        public PredicateToExpressionAdapter​(org.apache.camel.Predicate predicate)
    • Method Detail

      • evaluate

        public <T> T evaluate​(org.apache.camel.Exchange exchange,
                              Class<T> type)
        Specified by:
        evaluate in interface org.apache.camel.Expression
      • toExpression

        public static org.apache.camel.Expression toExpression​(org.apache.camel.Predicate predicate)
        Converts the given predicate into an Expression