Package com.wavefront.predicates
Class StringComparisonExpression
- java.lang.Object
-
- com.wavefront.predicates.StringComparisonExpression
-
- All Implemented Interfaces:
BaseExpression,PredicateEvalExpression
public class StringComparisonExpression extends Object implements PredicateEvalExpression
Adapter that converts twoStringExpressiontoPredicateEvalExpression.- Author:
- vasily@wavefront.com.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetValue(Object entity)Get a double value.static PredicateEvalExpressionof(StringExpression left, StringExpression right, String op)
-
-
-
Method Detail
-
getValue
public double getValue(Object entity)
Description copied from interface:PredicateEvalExpressionGet a double value.- Specified by:
getValuein interfacePredicateEvalExpression- Parameters:
entity- entity to get the value from.- Returns:
- double value
-
of
public static PredicateEvalExpression of(StringExpression left, StringExpression right, String op)
-
-