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(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) |
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, hashCode, intValue
toXMLString
protected 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(org.jdom.Element element)
element
- to be decodedpublic UnsignedInteger96(java.lang.String string)
string
- in decimal representationpublic void decodeBinary(LLRPBitList bitList)
decodeBinary
in class LLRPType
bitList
- to be decodedpublic LLRPBitList encodeBinary()
LLRPType
encodeBinary
in class LLRPType
public static int length()
public java.lang.Integer toInteger()
toInteger
in class LLRPNumberType
protected void setBits(java.lang.Number value)
value
- to setpublic void decodeXML(org.jdom.Element element)
LLRPType
public org.jdom.Content encodeXML(java.lang.String name, org.jdom.Namespace ns)
LLRPType
public java.lang.String toString()
LLRPType
toString
in class LLRPNumberType
public boolean inRange(long value)
inRange
in class LLRPNumberType
Copyright © 2007 ETH Zurich.