@PersistantProperties(properties=@PersistantProperty(property="decimals")) public class DIVIDED extends AbstractMathOperator
Modifier and Type | Field and Description |
---|---|
static String |
DIVIDED_BY_ID |
Constructor and Description |
---|
DIVIDED() |
Modifier and Type | Method and Description |
---|---|
DIVIDED |
clone()
Clones the Addon.
|
protected BigDecimal |
compute(BigDecimal nleft,
BigDecimal nright) |
protected int |
compute(int nleft,
int nright) |
protected long |
compute(long nleft,
long nright) |
boolean |
equals(Object o) |
protected boolean |
forceUseOfBigDecimal() |
Rounder |
getDecimals() |
String |
getImplementationId()
Unique addon implementation ID.
|
String |
getRepresentation()
String representation for human read
|
int |
getWeight()
Returns 200
|
int |
hashCode() |
void |
setDecimals(Rounder decimals) |
compile, compileOperator, compute, compute, redirectToBigDecimal, toString
getInternalCacheIdentifier, isCacheUsed, isInternalCacheIdentifierNeeded, optimize, resetCachedData, setInternalCacheIdentifier, toString, wasRegistered
getDebugInfo, getDescription, getName, setDebugInfo, setDescription, setName
finalize, getClass, notify, notifyAll, wait, wait, wait
getInternalCacheIdentifier, isCacheUsed, isInternalCacheIdentifierNeeded, optimize, resetCachedData, setInternalCacheIdentifier, wasRegistered
getDebugInfo, getDescription, getName, setDebugInfo, setDescription, setName
public static final String DIVIDED_BY_ID
protected BigDecimal compute(BigDecimal nleft, BigDecimal nright)
compute
in class AbstractMathOperator
protected int compute(int nleft, int nright)
compute
in class AbstractMathOperator
protected long compute(long nleft, long nright)
compute
in class AbstractMathOperator
protected boolean forceUseOfBigDecimal()
forceUseOfBigDecimal
in class AbstractMathOperator
public int getWeight()
public String getRepresentation()
IMathOperator
public String getImplementationId()
IAddon
public Rounder getDecimals()
public void setDecimals(Rounder decimals)
public int hashCode()
hashCode
in class AbstractMathOperator
public boolean equals(Object o)
equals
in class AbstractMathOperator
public DIVIDED clone()
IAddon
clone
in interface IAddon
clone
in interface IMRulesObject
clone
in interface IMathOperator
clone
in class AbstractMathOperator