public class UnsignedInteger extends LLRPNumberType
| Modifier and Type | Field and Description |
|---|---|
protected java.math.BigInteger |
value |
signed| Constructor and Description |
|---|
UnsignedInteger()
Creates a new UnsignedInteger object.
|
UnsignedInteger(org.jdom.Element element)
Creates a new UnsignedInteger object from jdom element - used for xml decoding
|
UnsignedInteger(int value)
Creates a new UnsignedInteger object from Java Integer - interpreting signed bit as value
|
UnsignedInteger(java.lang.Integer value)
Creates a new UnsignedInteger object from Java Integer - interpreting signed bit as value
|
UnsignedInteger(LLRPBitList bitList)
Creates a new UnsignedInteger object.
|
UnsignedInteger(LLRPBitList bitList,
int bitIndex,
int length) |
UnsignedInteger(long value)
Creates a new UnsignedInteger object from Java long
|
UnsignedInteger(java.lang.String valueString)
Creates a new UnsignedInteger object.
|
UnsignedInteger(java.lang.String valueString,
int radix)
String representation in specified radix.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decodeBinary(LLRPBitList bitList)
decode to binary representation
|
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 valueString) |
int |
intValue() |
static int |
length()
number of bits used to represent this type
|
java.lang.Integer |
toInteger()
this might return a false value.
|
java.lang.Long |
toLong()
Unsigned Integer wrapped Integero java long
|
java.lang.String |
toString()
String representation
|
java.lang.String |
toString(int radix) |
equals, hashCodetoXMLStringpublic UnsignedInteger(LLRPBitList bitList, int bitIndex, int length)
public UnsignedInteger(java.lang.Integer value)
value - to setpublic UnsignedInteger(int value)
value - to setpublic UnsignedInteger(long value)
value - to setpublic UnsignedInteger(java.lang.String valueString)
valueString - value as stringpublic UnsignedInteger(java.lang.String valueString,
int radix)
public UnsignedInteger()
public UnsignedInteger(LLRPBitList bitList)
bitList - to be decodedpublic UnsignedInteger(org.jdom.Element element)
element - to be decodedpublic void decodeBinary(LLRPBitList bitList)
decodeBinary in class LLRPTypebitList - to be decodedpublic static int length()
public java.lang.Integer toInteger()
toInteger in class LLRPNumberTypepublic int intValue()
intValue in class LLRPNumberTypepublic java.lang.Long toLong()
public void decodeXML(org.jdom.Element element)
LLRPTypepublic LLRPBitList encodeBinary()
LLRPTypeencodeBinary in class 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.