public class NumberActionCondition extends AbstractActionCondition
| Modifier and Type | Field and Description | 
|---|---|
static String | 
EQUAL
Returns true if the left and right operands are equal 
 | 
static String | 
GREATER_THAN
Returns true if the left operand is greater than the right operand 
 | 
static String | 
GREATER_THAN_EQUAL
Returns true if the left operand is greater than or equal to the right 
 operand 
 | 
static String | 
LESS_THAN
Returns true if the left operand is less than the right operand 
 | 
static String | 
LESS_THAN_EQUAL
Returns true if the left operand is less than or equal to the right
 operand 
 | 
static String | 
NOT_EQUAL
Returns true if the left and right operands are not equal 
 | 
m_LeftOperand, m_Operation, m_RightOperand| Constructor and Description | 
|---|
NumberActionCondition()
Creates a NumberActionException that compares two double operands and
 registers the valid operations that can be performed on the operands. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
evaluate()
Parses the left and right operands as doubles, if possible, and returns
 true if (left_operand operation right_operand) is successful. 
 | 
addOperation, getLeftOperand, getOperation, getRightOperand, setLeftOperand, setOperation, setRightOperandpublic static final String EQUAL
public static final String NOT_EQUAL
public static final String GREATER_THAN
public static final String LESS_THAN
public static final String GREATER_THAN_EQUAL
public static final String LESS_THAN_EQUAL
public NumberActionCondition()
public boolean evaluate()
NumberFormatException - If the left or right operands cannot be
 be parsed as doubles.Copyright © 2025. All rights reserved.