instead
public class Entity
extends java.lang.Object
implements java.io.Externalizable
One notion which is common to all entity classes is the name of the entity, represented by a string. Subclasses may introduce additional properties.
Certificate, Serialized Form| Constructor and Description |
|---|
Entity()
Deprecated.
Creates a new, unnamed entity.
|
Entity(java.lang.String name)
Deprecated.
Creates a new entity with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Deprecated.
Returns true if and the only if the specified object is an
Entity with the same name. |
java.lang.String |
getName()
Deprecated.
Returns the name of this entity.
|
void |
readExternal(java.io.ObjectInput is)
Deprecated.
|
void |
setName(java.lang.String name)
Deprecated.
Sets the name of this entity.
|
void |
writeExternal(java.io.ObjectOutput os)
Deprecated.
|
public Entity()
public Entity(java.lang.String name)
public java.lang.String getName()
public void setName(java.lang.String name)
public boolean equals(java.lang.Object obj)
Entity with the same name.equals in class java.lang.Object
public void writeExternal(java.io.ObjectOutput os)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException
public void readExternal(java.io.ObjectInput is)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundException