@Shareable @Immutable public final class EntityType extends java.lang.Object implements java.io.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 |
---|---|
static EntityType |
forName(java.lang.String name)
Get the entity type for a name.
|
java.lang.String |
getName()
Get the name of this entity type.
|
java.lang.String |
toString() |
public java.lang.String getName()
Get the name of this entity type.
public java.lang.String toString()
toString
in class java.lang.Object
@Nonnull public static EntityType forName(java.lang.String name)
Get the entity type for a name.
name
- The type name.name
.