org.jdesktop.wonderland.common.cell
Class CellID

java.lang.Object
  extended by org.jdesktop.wonderland.common.cell.CellID
All Implemented Interfaces:
java.io.Serializable

public class CellID
extends java.lang.Object
implements java.io.Serializable

CellID provides a unique id for cells from a specific wonderland world instance.

Author:
paulby
See Also:
Serialized Form

Constructor Summary
CellID(long id)
          Creates a new instance of CellID.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
static CellID getEnvironmentCellID()
          Returns a cellID that represents the environment cell
static long getFirstCellID()
          Get the first cell ID that should be assigned to cells
static CellID getInvalidCellID()
          Returns a cellID that represents an invalid cell
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CellID

public CellID(long id)
Creates a new instance of CellID. Users should never call this, CellIDs are only created by

Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getFirstCellID

public static long getFirstCellID()
Get the first cell ID that should be assigned to cells

Returns:

getInvalidCellID

public static CellID getInvalidCellID()
Returns a cellID that represents an invalid cell

Returns:

getEnvironmentCellID

public static CellID getEnvironmentCellID()
Returns a cellID that represents the environment cell



Open Wonderland - http://openwonderland.org