JmesPathExpressionOpGreaterThan, OpGreaterThanOrEqualTo, OpLessThan, OpLessThanOrEqualTopublic abstract class NumericComparator extends Comparator
| Constructor | Description |
|---|---|
NumericComparator(JmesPathExpression lhsExpr,
JmesPathExpression rhsExpr) |
Constructs a new Comparator with the given lhs amd rhs
expressions.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
matches(com.fasterxml.jackson.databind.JsonNode lhs,
com.fasterxml.jackson.databind.JsonNode rhs) |
Converts the lhs and rhs JsonNodes to the numeric values
and delegates to the matches method that operates on the
numeric values alone.
|
abstract boolean |
matches(BigDecimal lhs,
BigDecimal rhs) |
Abstract method definition that is overriden by the
subclasses to compare the given lhs and rhs numbers
according to the given comparator
|
getLhsExpr, getRhsExpracceptpublic NumericComparator(JmesPathExpression lhsExpr, JmesPathExpression rhsExpr)
lhsExpr - Left expressionrhsExpr - Right expressionpublic final boolean matches(com.fasterxml.jackson.databind.JsonNode lhs,
com.fasterxml.jackson.databind.JsonNode rhs)
matches in class Comparatorlhs - Lhs expressionrhs - Rhs expressionpublic abstract boolean matches(BigDecimal lhs, BigDecimal rhs)
lhs - Lhs Numberrhs - Rhs NumberCopyright © 2017 Amazon Web Services, Inc. All Rights Reserved.