|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 decodedpublic UnsignedLong(java.lang.String valueString, int radix)
public UnsignedLong(java.lang.String string)
string
- radix 10public UnsignedLong(LLRPBitList bitList)
bitList
- to be decodedMethod Detail |
---|
public void decodeBinary(LLRPBitList bitList)
decodeBinary
in class LLRPType
bitList
- 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 LLRPNumberType
public long toLong()
public void decodeXML(org.jdom.Element element)
LLRPType
decodeXML
in class LLRPType
element
- 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 LLRPType
name
- returned content should havens
- Namespace of elementspublic int hashCode()
hashCode
in class LLRPNumberType
public java.lang.String toString(int radix)
toString
in class LLRPType
public boolean inRange(long value)
inRange
in class LLRPNumberType
public 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 |