Package marauroa.common.game
Class IRPZone.ID
java.lang.Object
marauroa.common.game.IRPZone.ID
- All Implemented Interfaces:
Serializable
- Enclosing interface:
- IRPZone
An unique ID for this zone
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
This method returns true of both ids are equal.getID()
This method returns the object idint
hashCode()
We need it for HashMapvoid
Deserialize the object and fills this object with the datatoString()
This method returns a String that represent the objectvoid
writeObject(OutputSerializer out)
Serialize the object into a stream of bytes.
-
Constructor Details
-
ID
Constructor- Parameters:
zid
- the object id
-
-
Method Details
-
getID
This method returns the object id- Returns:
- the object id.
-
equals
This method returns true of both ids are equal. -
hashCode
public int hashCode()We need it for HashMap -
toString
This method returns a String that represent the object -
writeObject
Serialize the object into a stream of bytes.- Specified by:
writeObject
in interfaceSerializable
- Parameters:
out
- OutputSerializer to write the object to- Throws:
IOException
- in case of an IO-error
-
readObject
Deserialize the object and fills this object with the data- Specified by:
readObject
in interfaceSerializable
- Parameters:
in
- InputSerializer to read from- Throws:
IOException
- in case of an IO-error
-