public class UnsignedLong extends LLRPNumberType
Modifier and Type | Field and Description |
---|---|
protected static int |
LENGTH |
protected java.math.BigInteger |
value |
signed
Constructor and Description |
---|
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(LLRPBitList bitList,
int bitIndex,
int length) |
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.
|
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 |
equals(LLRPNumberType other)
compare
|
int |
hashCode() |
boolean |
inRange(long value) |
boolean |
inRange(java.lang.String valueString) |
int |
intValue() |
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) |
equals, toString
toXMLString
protected static final int LENGTH
protected java.math.BigInteger value
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 decodedpublic UnsignedLong(LLRPBitList bitList, int bitIndex, int length)
public void decodeBinary(LLRPBitList bitList)
decodeBinary
in class LLRPType
bitList
- to be decodedpublic boolean equals(LLRPNumberType other)
other
- to comparepublic static int length()
public java.math.BigInteger toBigInteger()
public java.lang.Integer toInteger()
toInteger
in class LLRPNumberType
public int intValue()
intValue
in class LLRPNumberType
public long toLong()
public void decodeXML(org.jdom.Element element)
LLRPType
public LLRPBitList encodeBinary()
LLRPType
encodeBinary
in class LLRPType
public org.jdom.Content encodeXML(java.lang.String name, org.jdom.Namespace ns)
LLRPType
public int hashCode()
hashCode
in class LLRPNumberType
public boolean inRange(long value)
inRange
in class LLRPNumberType
Copyright © 2007 ETH Zurich.