|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AsnIntegralNumber
Method Summary | |
---|---|
Number |
getValue()
The value bits of this instance as an abstract number (Integer, Long, BigInteger). |
int |
getValueAsInt()
The value of this instance as a java int. |
Number |
getValueLarge()
The value bits of this instance as an abstract number (Long, BigInteger). |
boolean |
hasSameNumericalValue(Number compare)
Determines whether this instances value matches the one of the given number. |
boolean |
isValueAnInt()
Determines whether the value of this tag can be represented in a java int. |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
Number getValue()
boolean hasSameNumericalValue(Number compare)
compare
- the value to compare our value to
boolean isValueAnInt()
int getValueAsInt()
IllegalStateException
- in case the value is too large for a java intNumber getValueLarge()
IllegalStateException
- in case the value fits into a java int
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |