public final class EntityType extends Object implements Serializable
A type for an entity. Obtain an entity from a named type with forName(String)
.
Entity types are unique objects that can be equality-tested with ==
.
Type names are case-insensitive, and are normalized to lowercase in the root locale.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static EntityType |
forName(String name)
Get the entity type for a name.
|
String |
getName()
Get the name of this entity type.
|
int |
hashCode() |
String |
toString() |
public String getName()
Get the name of this entity type.
@Nonnull public static EntityType forName(String name)
Get the entity type for a name.
name
- The type name.name
.