|
7.0 Action Request System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.remedy.arsys.api.ArithmeticOperationInfo
The ArithmeticOperationInfo
class represents the
result value from an arithmetic operation
between ArithmeticOrRelationalOperand
objects.
It consists
of a tag identifying the operation type and two operands specifying the values to
compare.
Note
This operand is used in RelationalOperationInfo
operation as well.
Refs: QualifierInfo
Field Summary | |
static int |
AR_ARITH_OP_ADD
AR_ARITH_OP_ADD adds the left and right operands. |
static int |
AR_ARITH_OP_DIVIDE
AR_ARITH_OP_DIVIDE
divides the left operand by the right operand. |
static int |
AR_ARITH_OP_MODULO
AR_ARITH_OP_MODULO
finds the remainder after dividing the left operand by the right operand. |
static int |
AR_ARITH_OP_MULTIPLY
AR_ARITH_OP_MULTIPLY
multiplies the left and right operands. |
static int |
AR_ARITH_OP_NEGATE
AR_ARITH_OP_NEGATE
changes the sign of the right operand (left operand is ignored). |
static int |
AR_ARITH_OP_SUBTRACT
AR_ARITH_OP_SUBTRACT
subtracts the right operand from the left operand. |
Constructor Summary | |
ArithmeticOperationInfo()
|
|
ArithmeticOperationInfo(int operation,
ArithmeticOrRelationalOperand op1,
ArithmeticOrRelationalOperand op2)
|
Method Summary | |
java.lang.Object |
clone()
Clone implementation that returns an Object with data cloned from self |
boolean |
equals(java.lang.Object anObject)
Use this method for checking equality. |
ArithmeticOrRelationalOperand |
getLeftOperand()
Returns value of left operand of operation. |
int |
getOperation()
Returns arithmetic operation used in qualification. |
ArithmeticOrRelationalOperand |
getRightOperand()
Returns value of right operand of operation. |
int |
hashCode()
Returns the hash code value for this instance of the current class. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int AR_ARITH_OP_ADD
AR_ARITH_OP_ADD
adds the left and right operands.
public static final int AR_ARITH_OP_SUBTRACT
AR_ARITH_OP_SUBTRACT
subtracts the right operand from the left operand.
public static final int AR_ARITH_OP_MULTIPLY
AR_ARITH_OP_MULTIPLY
multiplies the left and right operands.
public static final int AR_ARITH_OP_DIVIDE
AR_ARITH_OP_DIVIDE
divides the left operand by the right operand.
public static final int AR_ARITH_OP_MODULO
AR_ARITH_OP_MODULO
finds the remainder after dividing the left operand by the right operand.
public static final int AR_ARITH_OP_NEGATE
AR_ARITH_OP_NEGATE
changes the sign of the right operand (left operand is ignored).
Constructor Detail |
public ArithmeticOperationInfo()
public ArithmeticOperationInfo(int operation, ArithmeticOrRelationalOperand op1, ArithmeticOrRelationalOperand op2) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if invalid operationMethod Detail |
public ArithmeticOrRelationalOperand getLeftOperand()
public ArithmeticOrRelationalOperand getRightOperand()
public int getOperation()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public boolean equals(java.lang.Object anObject)
public int hashCode()
|
7.0 Action Request System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |