net.sf.juoserver.protocol
Class PickUpItem

java.lang.Object
  extended by net.sf.juoserver.protocol.AbstractMessage
      extended by net.sf.juoserver.protocol.PickUpItem
All Implemented Interfaces:
Serializable, Message

public class PickUpItem
extends AbstractMessage

See Also:
Serialized Form

Field Summary
protected static int CODE
           
 
Fields inherited from class net.sf.juoserver.protocol.AbstractMessage
NO_CODE, UTF8
 
Constructor Summary
PickUpItem(byte[] contents)
           
PickUpItem(int itemSerialId, short amount)
           
 
Method Summary
 boolean equals(Object obj)
           
 short getAmount()
           
 int getItemSerialId()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class net.sf.juoserver.protocol.AbstractMessage
encode, getCode, getLength, getName, isCompressed, wrapContents, wrapContents
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CODE

protected static final int CODE
See Also:
Constant Field Values
Constructor Detail

PickUpItem

public PickUpItem(int itemSerialId,
                  short amount)

PickUpItem

public PickUpItem(byte[] contents)
Method Detail

getItemSerialId

public int getItemSerialId()

getAmount

public short getAmount()

hashCode

public int hashCode()
Specified by:
hashCode in class AbstractMessage

equals

public boolean equals(Object obj)
Specified by:
equals in class AbstractMessage

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010-2012. All Rights Reserved.