protected abstract static class Entity.Builder<T extends Entity,B extends Entity.Builder<T,B>> extends Object
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract T |
build()
Returns the configured entity instance
|
B |
entity(Entity entity)
Sets the entity.
|
B |
id(long id)
Sets the id of the entity.
|
B |
name(String name)
Sets the name of the entity.
|
protected abstract B |
self()
Returns this object.
|
public B entity(Entity entity)
entity
- The entitypublic B id(long id)
id
- The id of the entitypublic B name(String name)
name
- The name of the entityprotected abstract B self()
public abstract T build()
Copyright © 2018. All rights reserved.