|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.eou.decimal.ArithmeticConditions
This class provides a set of conditions that can arise during numeric conversions and arithmetic operations.
Constructor Summary | |
ArithmeticConditions()
Create a set of arithmetic conditions. |
Method Summary | |
boolean |
equals(java.lang.Object other)
Return true if the conditions all match. |
int |
hashCode()
Return a hash code which will be equal for objects that compare equal, and will preferably be different for objects that compare unequal. |
boolean |
isClamped()
Return true if the clamped condition is set. |
boolean |
isConversionSyntax()
Return true if the conversion syntax condition is set. |
boolean |
isDivisionByZero()
Return true if the division by zero condition is set. |
boolean |
isDivisionImpossible()
Return true if the division impossible condition is set. |
boolean |
isDivisionUndefined()
Return true if the division undefined condition is set. |
boolean |
isInexact()
Return true if the inexact condition is set. |
boolean |
isInsufficientStorage()
Return true if the insufficient storage condition is set. |
boolean |
isInvalidContext()
Return true if the invalid context condition is set. |
boolean |
isInvalidOperation()
Return true if the invalid operation condition is set. |
boolean |
isLostDigits()
Return true if the lost digits condition is set. |
boolean |
isOverflow()
Return true if the overflow condition is set. |
boolean |
isRounded()
Return true if the rounded condition is set. |
boolean |
isSubnormal()
Return true if the subnormal condition is set. |
boolean |
isUnderflow()
Return true if the underflow condition is set. |
void |
resetAll()
Clear all the conditions. |
void |
setAll(ArithmeticConditions conditions)
Set all the conditions which are set in the specified set of conditions. |
void |
setClamped()
Set the clamped condition. |
void |
setConversionSyntax()
Set the conversion syntax condition. |
void |
setDivisionByZero()
Set the division by zero condition. |
void |
setDivisionImpossible()
Set the division impossible condition. |
void |
setDivisionUndefined()
Set the division undefined condition. |
void |
setInexact()
Set the inexact condition. |
void |
setInsufficientStorage()
Set the insufficient storage condition. |
void |
setInvalidContext()
Set the invalid context condition. |
void |
setInvalidOperation()
Set the invalid operation condition. |
void |
setLostDigits()
Set the lost digits condition. |
void |
setOverflow()
Set the overflow condition. |
void |
setRounded()
Set the rounded condition. |
void |
setSubnormal()
Set the subnormal condition. |
void |
setUnderflow()
Set the underflow condition. |
java.lang.String |
toCompactString()
Represent the set conditions as a compact string, using a single letter for each set condition. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ArithmeticConditions()
Method Detail |
public boolean isClamped()
public void setClamped()
isClamped()
public boolean isConversionSyntax()
public void setConversionSyntax()
isConversionSyntax()
public boolean isDivisionByZero()
public void setDivisionByZero()
isDivisionByZero()
public boolean isDivisionImpossible()
public void setDivisionImpossible()
isDivisionImpossible()
public boolean isDivisionUndefined()
public void setDivisionUndefined()
isDivisionUndefined()
public boolean isInexact()
public void setInexact()
isInexact()
public boolean isInsufficientStorage()
public void setInsufficientStorage()
isInsufficientStorage()
public boolean isInvalidContext()
public void setInvalidContext()
isInvalidContext()
public boolean isInvalidOperation()
public void setInvalidOperation()
isInvalidOperation()
public boolean isLostDigits()
public void setLostDigits()
isLostDigits()
public boolean isOverflow()
public void setOverflow()
isOverflow()
public boolean isRounded()
public void setRounded()
isRounded()
public boolean isSubnormal()
inexact
condition will be set, along with the underflow
condition.
Note that the resultant encoding may not be a subnormal number when
the subnormal condition is set.
public void setSubnormal()
isSubnormal()
public boolean isUnderflow()
subnormal
, although certain values near to the
normal range lower threshold may combine with certain rounding methods
to set the underflow condition while still yielding a finite encoding in the
normal range.
public void setUnderflow()
isUnderflow()
public void setAll(ArithmeticConditions conditions)
public void resetAll()
public java.lang.String toCompactString()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |