public class OperatorUtils extends Object
It's important that this class mimics the natural type conversion that Java will apply when performing operators. This can be found in section 5.6.2 of the Java 7 spec, under Binary Numeric Promotion.
| Constructor and Description |
|---|
OperatorUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
add(Object op1,
Object op2) |
static Object |
divide(Object op1,
Object op2) |
static boolean |
equals(Object op1,
Object op2) |
static boolean |
gt(Object op1,
Object op2) |
static boolean |
gte(Object op1,
Object op2) |
static boolean |
lt(Object op1,
Object op2) |
static boolean |
lte(Object op1,
Object op2) |
static Object |
mod(Object op1,
Object op2) |
static Object |
multiply(Object op1,
Object op2) |
static Object |
subtract(Object op1,
Object op2) |
static Object |
unaryMinus(Object op1) |
static Object |
unaryPlus(Object op1) |
Copyright © 2015. All rights reserved.