com.rapplogic.xbee.util
Class DoubleByte
java.lang.Object
com.rapplogic.xbee.util.DoubleByte
- Direct Known Subclasses:
- XBeePacketLength
public class DoubleByte
- extends java.lang.Object
Constructor Summary |
DoubleByte()
|
DoubleByte(int val)
Decomposes a 16bit int into high and low bytes |
DoubleByte(int msb,
int lsb)
Constructs a 16bit value from two bytes (high and low) |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
DoubleByte
public DoubleByte()
DoubleByte
public DoubleByte(int val)
- Decomposes a 16bit int into high and low bytes
- Parameters:
val
-
DoubleByte
public DoubleByte(int msb,
int lsb)
- Constructs a 16bit value from two bytes (high and low)
- Parameters:
msb
- lsb
-
getMsb
public int getMsb()
getLsb
public int getLsb()
get16BitValue
public int get16BitValue()
setMsb
public void setMsb(int msb)
setLsb
public void setLsb(int lsb)
getArray
public int[] getArray()
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object