public abstract class Entity extends NamedIdResource
Modifier and Type | Class and Description |
---|---|
protected static class |
Entity.Builder<T extends Entity,B extends Entity.Builder<T,B>>
Builder to make entity construction easier.
|
Constructor and Description |
---|
Entity(String type)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getType()
Returns the entity type.
|
void |
setType(String type)
Sets the entity type.
|
String |
toString()
Returns a string representation of the object.
|
getName, setName
getId, setId
public Entity(String type)
type
- The type of the entitypublic void setType(String type)
type
- The entity typepublic String getType()
public String toString()
toString
in class NamedIdResource
Copyright © 2018. All rights reserved.