com.rapplogic.xbee.util
Class DoubleByte

java.lang.Object
  extended by 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)
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int get16BitValue()
           
 int[] getArray()
           
 int getLsb()
           
 int getMsb()
           
 int hashCode()
           
 void setLsb(int lsb)
           
 void setMsb(int msb)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 -
Method Detail

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