Package org.exbin.xbup.core.ubnumber
Interface UBBoolean
-
- All Superinterfaces:
java.io.Serializable
,UBStreamable
,XBAttribute
,XBEditableAttribute
- All Known Implementing Classes:
UBBool
public interface UBBoolean extends java.io.Serializable, UBStreamable, XBEditableAttribute
Interface for LRUB-encoded boolean value.
-
-
Field Summary
Fields Modifier and Type Field Description static long[]
XBUP_BLOCKREV_CATALOGPATH
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
getBoolean()
Gets boolean value.long
getSegmentCount()
Gets count of long value segments.long
getValueSegment(long segmentIndex)
Gets long integer segment of value.void
setValue(boolean value)
Sets boolean value.-
Methods inherited from interface org.exbin.xbup.core.ubnumber.UBStreamable
fromStreamUB, getSizeUB, toStreamUB
-
Methods inherited from interface org.exbin.xbup.core.parser.token.XBAttribute
convertToNatural, getNaturalInt, getNaturalLong, isNaturalZero
-
Methods inherited from interface org.exbin.xbup.core.parser.token.XBEditableAttribute
convertFromNatural, setNaturalInt, setNaturalLong, setNaturalZero
-
-
-
-
Method Detail
-
getBoolean
boolean getBoolean() throws UBOverFlowException
Gets boolean value.- Returns:
- value
- Throws:
UBOverFlowException
-
setValue
void setValue(boolean value) throws UBOverFlowException
Sets boolean value.- Parameters:
value
- value- Throws:
UBOverFlowException
-
getSegmentCount
long getSegmentCount()
Gets count of long value segments.- Returns:
- count of long segments
-
getValueSegment
long getValueSegment(long segmentIndex)
Gets long integer segment of value.- Parameters:
segmentIndex
- index of segment, 0 for lowest value- Returns:
- long integer
-
-