public class Promotion extends Object
For use by numeric operators.
Modifier and Type | Field and Description |
---|---|
boolean |
noDouble |
boolean |
noFloat |
boolean |
noInt |
boolean |
noLong |
boolean |
noShort |
boolean |
noVersion |
Constructor and Description |
---|
Promotion() |
Modifier and Type | Method and Description |
---|---|
Number |
callOP(AbstractOp op,
Number arg1,
Number arg2)
Call numeric operation with promotion of its arguments.
|
void |
promote(Number arg)
Promote numeric operation up to type of argument.
|
Number |
returnResult(Number result)
Promote given numeric value.
|
public boolean noVersion
public boolean noDouble
public boolean noFloat
public boolean noShort
public boolean noInt
public boolean noLong
public void promote(Number arg)
public Number callOP(AbstractOp op, Number arg1, Number arg2)
Copyright © 2022. All rights reserved.