Class IRPZone.ID

java.lang.Object
marauroa.common.game.IRPZone.ID
All Implemented Interfaces:
Serializable
Enclosing interface:
IRPZone

public static class IRPZone.ID extends Object implements Serializable
An unique ID for this zone
  • Constructor Details

    • ID

      public ID(String zid)
      Constructor
      Parameters:
      zid - the object id
  • Method Details

    • getID

      public String getID()
      This method returns the object id
      Returns:
      the object id.
    • equals

      public boolean equals(Object anotherid)
      This method returns true of both ids are equal.
      Overrides:
      equals in class Object
      Parameters:
      anotherid - another id object
      Returns:
      true if they are equal, or false otherwise.
    • hashCode

      public int hashCode()
      We need it for HashMap
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      This method returns a String that represent the object
      Overrides:
      toString in class Object
      Returns:
      a string representing the object.
    • writeObject

      public void writeObject(OutputSerializer out) throws IOException
      Serialize the object into a stream of bytes.
      Specified by:
      writeObject in interface Serializable
      Parameters:
      out - OutputSerializer to write the object to
      Throws:
      IOException - in case of an IO-error
    • readObject

      public void readObject(InputSerializer in) throws IOException
      Deserialize the object and fills this object with the data
      Specified by:
      readObject in interface Serializable
      Parameters:
      in - InputSerializer to read from
      Throws:
      IOException - in case of an IO-error