public abstract static class MetadataEntity.Builder extends AbstractEntity.Builder
Modifier | Constructor and Description |
---|---|
protected |
Builder()
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
MetadataEntity.Builder |
addText(Text text)
Adds text.
|
protected MetadataEntity.Builder |
copyFrom(MetadataEntity entity)
Copies the values from an entity.
|
protected Optional<KeyedGroups> |
getAttributes()
Gets the attributes.
|
protected Optional<Map<String,Text>> |
getTexts()
Gets the text.
|
MetadataEntity.Builder |
setAttributes(Optional<KeyedGroups> attributes)
Sets attributes.
|
build, copyFrom, getName, getThisLogger, getUUID, setName, setName, setUUID
@Nonnull public final MetadataEntity.Builder addText(@Nonnull Text text)
text
- The text.@Nonnull public final MetadataEntity.Builder setAttributes(@Nonnull Optional<KeyedGroups> attributes)
attributes
- The optional attributes.@Nonnull protected MetadataEntity.Builder copyFrom(@Nonnull MetadataEntity entity)
entity
- The entity.@Nonnull @CheckReturnValue protected final Optional<KeyedGroups> getAttributes()
@Nonnull @CheckReturnValue protected final Optional<Map<String,Text>> getTexts()
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.