public class UnsignedInteger96 extends LLRPNumberType
| Modifier and Type | Field and Description |
|---|---|
protected static int |
LENGTH |
protected java.math.BigInteger |
value |
signed| Constructor and Description |
|---|
UnsignedInteger96()
Creates a new Integer96 object.
|
UnsignedInteger96(java.math.BigInteger value)
Creates a new Integer96 object.
|
UnsignedInteger96(org.jdom.Element element)
Creates a new Integer96 object.
|
UnsignedInteger96(LLRPBitList bitList)
Creates a new Integer96 object.
|
UnsignedInteger96(LLRPBitList bitList,
int bitIndex,
int length) |
UnsignedInteger96(long value) |
UnsignedInteger96(java.lang.String string)
Creates a new Integer96 object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decodeBinary(LLRPBitList bitList)
overwrite decodeBinary as it ha to work differently.
|
void |
decodeXML(org.jdom.Element element)
create objects from xml.
|
LLRPBitList |
encodeBinary()
encode this value
|
org.jdom.Content |
encodeXML(java.lang.String name,
org.jdom.Namespace ns)
create xml representation of this parameter.
|
boolean |
inRange(long value) |
boolean |
inRange(java.lang.String value) |
int |
intValue() |
static int |
length()
length in number of bits used to represent this type.
|
protected void |
setBits(java.lang.Number value)
set bits.
|
java.lang.Integer |
toInteger()
this Integer converted to java Integerer - miht cause loss of precision.
|
java.lang.String |
toString()
String representation
|
java.lang.String |
toString(int radix) |
equals, hashCodetoXMLStringprotected static final int LENGTH
protected java.math.BigInteger value
public UnsignedInteger96(java.math.BigInteger value)
value - to setpublic UnsignedInteger96(long value)
public UnsignedInteger96()
public UnsignedInteger96(LLRPBitList bitList)
bitList - to be decodedpublic UnsignedInteger96(LLRPBitList bitList, int bitIndex, int length)
public UnsignedInteger96(org.jdom.Element element)
element - to be decodedpublic UnsignedInteger96(java.lang.String string)
string - in decimal representationpublic void decodeBinary(LLRPBitList bitList)
decodeBinary in class LLRPTypebitList - to be decodedpublic LLRPBitList encodeBinary()
LLRPTypeencodeBinary in class LLRPTypepublic static int length()
public java.lang.Integer toInteger()
toInteger in class LLRPNumberTypepublic int intValue()
intValue in class LLRPNumberTypeprotected void setBits(java.lang.Number value)
value - to setpublic void decodeXML(org.jdom.Element element)
LLRPTypepublic org.jdom.Content encodeXML(java.lang.String name,
org.jdom.Namespace ns)
LLRPTypepublic java.lang.String toString()
LLRPTypetoString in class LLRPNumberTypepublic boolean inRange(long value)
inRange in class LLRPNumberTypeCopyright © 2007 ETH Zurich.