public class Entity
An entity definition.
| Constructor and Description |
|---|
Entity(EntityType entityType,
java.lang.String role)
An entity definition.
|
| Modifier and Type | Method and Description |
|---|---|
EntityType |
component1()
Entity type definition.
|
java.lang.String |
component2()
Role of the entity.
|
Entity |
copy(EntityType entityType,
java.lang.String role)
An entity definition.
|
boolean |
equals(java.lang.Object p) |
EntityType |
getEntityType()
Entity type definition.
|
java.lang.String |
getRole()
Role of the entity.
|
int |
hashCode() |
java.lang.String |
toString() |
public Entity(@NotNull
EntityType entityType,
@NotNull
java.lang.String role)
An entity definition.
entityType - Entity type definition.role - Role of the entity.@NotNull public EntityType getEntityType()
Entity type definition.
@NotNull public java.lang.String getRole()
Role of the entity.
@NotNull public EntityType component1()
Entity type definition.
@NotNull public java.lang.String component2()
Role of the entity.
@NotNull public Entity copy(@NotNull EntityType entityType, @NotNull java.lang.String role)
An entity definition.
@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable
java.lang.Object p)