|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.llrp.ltk.types.LLRPType
org.llrp.ltk.types.LLRPNumberType
org.llrp.ltk.types.UnsignedLong
public class UnsignedLong
Unsigned Long
| Field Summary | |
|---|---|
protected static int |
LENGTH
|
protected java.math.BigInteger |
value
|
| Fields inherited from class org.llrp.ltk.types.LLRPNumberType |
|---|
signed |
| Constructor Summary | |
|---|---|
UnsignedLong()
|
|
UnsignedLong(org.jdom.Element element)
Creates a new UnsignedLong object from jdom element - used for xml decoding |
|
UnsignedLong(LLRPBitList bitList)
Creates a new UnsignedLong object. |
|
UnsignedLong(java.lang.Long value)
Creates a new UnsignedLong object. |
|
UnsignedLong(java.lang.String string)
|
|
UnsignedLong(java.lang.String valueString,
int radix)
String representation in specified radix. |
|
| Method Summary | |
|---|---|
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 |
equals(LLRPNumberType other)
compare |
int |
hashCode()
|
boolean |
inRange(long value)
|
boolean |
inRange(java.lang.String valueString)
|
static int |
length()
number of bits used to represent this type |
java.math.BigInteger |
toBigInteger()
UnsignedLong wrapped Integero BigInteger |
java.lang.Integer |
toInteger()
number of bits used to represent this type |
long |
toLong()
this might return a false value. |
java.lang.String |
toString(int radix)
|
| Methods inherited from class org.llrp.ltk.types.LLRPNumberType |
|---|
equals, intValue, toString |
| Methods inherited from class org.llrp.ltk.types.LLRPType |
|---|
toXMLString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final int LENGTH
protected java.math.BigInteger value
| Constructor Detail |
|---|
public UnsignedLong()
public UnsignedLong(java.lang.Long value)
value - to setpublic UnsignedLong(org.jdom.Element element)
element - to be decoded
public UnsignedLong(java.lang.String valueString,
int radix)
public UnsignedLong(java.lang.String string)
string - radix 10public UnsignedLong(LLRPBitList bitList)
bitList - to be decoded| Method Detail |
|---|
public void decodeBinary(LLRPBitList bitList)
decodeBinary in class LLRPTypebitList - to be decodedpublic boolean equals(LLRPNumberType other)
other - to compare
public static int length()
public java.math.BigInteger toBigInteger()
public java.lang.Integer toInteger()
toInteger in class LLRPNumberTypepublic long toLong()
public void decodeXML(org.jdom.Element element)
LLRPType
decodeXML in class LLRPTypeelement - to be decodedpublic LLRPBitList encodeBinary()
LLRPType
encodeBinary in class LLRPType
public org.jdom.Content encodeXML(java.lang.String name,
org.jdom.Namespace ns)
LLRPType
encodeXML in class LLRPTypename - returned content should havens - Namespace of elementspublic int hashCode()
hashCode in class LLRPNumberTypepublic java.lang.String toString(int radix)
toString in class LLRPTypepublic boolean inRange(long value)
inRange in class LLRPNumberTypepublic boolean inRange(java.lang.String valueString)
inRange in class LLRPType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||