public class SignedInteger extends LLRPNumberType
| Modifier and Type | Field and Description |
|---|---|
protected int |
value |
signed| Constructor and Description |
|---|
SignedInteger()
Creates a new SignedInteger object.
|
SignedInteger(org.jdom.Element element)
Creates a new UnsignedInteger object from jdom element - used for xml decoding
|
SignedInteger(int value) |
SignedInteger(java.lang.Integer value)
Creates a new SignedInteger object.
|
SignedInteger(LLRPBitList bitList)
Creates a new SignedInteger object.
|
SignedInteger(LLRPBitList bitList,
int bitIndex,
int length) |
SignedInteger(java.lang.String valueString)
String representation in radix 10.
|
SignedInteger(java.lang.String valueString,
int radix)
String representation in specified radix.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decodeBinary(LLRPBitList list)
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()
get number of bits used to represent this type.
|
java.lang.Integer |
toInteger()
Integer representation - no loss in precision
|
java.lang.String |
toString()
String representation
|
java.lang.String |
toString(int radix) |
equals, hashCodetoXMLStringpublic SignedInteger()
public SignedInteger(java.lang.Integer value)
value - to setpublic SignedInteger(int value)
public SignedInteger(LLRPBitList bitList)
bitList - to be decodedpublic SignedInteger(LLRPBitList bitList, int bitIndex, int length)
public SignedInteger(java.lang.String valueString)
public SignedInteger(java.lang.String valueString,
int radix)
public SignedInteger(org.jdom.Element element)
element - to be decodedpublic void decodeBinary(LLRPBitList list)
decodeBinary in class LLRPTypelist - to be decodedpublic static int length()
public java.lang.Integer toInteger()
toInteger in class LLRPNumberTypepublic int intValue()
intValue in class LLRPNumberTypepublic 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.