public abstract static class AbstractEntity.Builder
extends Object
Modifier | Constructor and Description |
---|---|
protected |
Builder()
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
abstract AbstractEntity |
build()
Builds an abstract entity.
|
protected AbstractEntity.Builder |
copyFrom(AbstractEntity entity)
Copies the values from an entity.
|
protected Optional<String> |
getName()
Gets the name.
|
protected Logger |
getThisLogger()
Gets the logger.
|
protected Optional<UUID> |
getUUID()
Gets the UUID.
|
AbstractEntity.Builder |
setName(Optional<String> name)
Sets the name.
|
AbstractEntity.Builder |
setName(String name)
Sets the name.
|
AbstractEntity.Builder |
setUUID(UUID uuid)
Sets the UUID.
|
@Nonnull @CheckReturnValue public abstract AbstractEntity build()
@Nonnull public AbstractEntity.Builder setName(Optional<String> name)
name
- The optional name.@Nonnull public AbstractEntity.Builder setName(String name)
name
- The name.@Nonnull public AbstractEntity.Builder setUUID(UUID uuid)
uuid
- The UUID.@Nonnull @OverridingMethodsMustInvokeSuper protected AbstractEntity.Builder copyFrom(@Nonnull AbstractEntity entity)
entity
- The entity.@Nonnull @CheckReturnValue protected Optional<String> getName()
@Nonnull @CheckReturnValue protected final Logger getThisLogger()
protected Optional<UUID> getUUID()
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.