public interface UBNatural extends java.io.Serializable, UBStreamable, XBEditableAttribute
Modifier and Type | Field and Description |
---|---|
static long[] |
XBUP_BLOCKREV_CATALOGPATH |
Modifier and Type | Method and Description |
---|---|
int |
getInt()
Gets short integer value.
|
long |
getLong()
Gets long integer value.
|
long |
getSegmentCount()
Gets count of long value segments.
|
long |
getValueSegment(long segmentIndex)
Gets long integer segment of value.
|
boolean |
isZero()
Returns if value is zero.
|
void |
setValue(int value)
Sets integer value.
|
void |
setValue(long value)
Sets long integer value.
|
convertFromNatural, setNaturalInt, setNaturalLong, setNaturalZero
convertToNatural, getNaturalInt, getNaturalLong, isNaturalZero
fromStreamUB, getSizeUB, toStreamUB
int getInt() throws UBOverFlowException
UBOverFlowException
- if value is out of rangelong getLong() throws UBOverFlowException
UBOverFlowException
- if value is out of rangeboolean isZero()
void setValue(int value) throws UBOverFlowException
value
- integer valueUBOverFlowException
void setValue(long value) throws UBOverFlowException
value
- long integer valueUBOverFlowException
long getSegmentCount()
long getValueSegment(long segmentIndex)
segmentIndex
- index of segment, 0 for lowest value