public interface AbstractOp
Part of the numeric promotion mechanism.
Modifier and Type | Method and Description |
---|---|
Number |
doDoubleOp(Number arg1,
Number arg2)
Do operation on Double type operands.
|
Number |
doFloatOp(Number arg1,
Number arg2)
Do operation on Float type operands.
|
Number |
doIntOp(Number arg1,
Number arg2)
Do operation on integer type operands (Long, Integer, Short,
Byte).
|
Number |
doVersionOp(Number arg1,
Number arg2)
Do operation on Version types operands.
|
Number doIntOp(Number arg1, Number arg2)
Number doDoubleOp(Number arg1, Number arg2)
At least one of operands must be Double, rest may be integer types or Float.
Number doFloatOp(Number arg1, Number arg2)
At least one of operands must be Float, the rest may be integer types.
Copyright © 2022. All rights reserved.