public abstract class ParamsEntity extends MetadataEntity
Modifier and Type | Class and Description |
---|---|
static class |
ParamsEntity.Builder
Builder.
|
UUID_COMPARATOR
Modifier | Constructor and Description |
---|---|
protected |
ParamsEntity()
Constructs an instance.
|
protected |
ParamsEntity(Optional<String> name,
Optional<UUID> uuid,
Optional<KeyedGroups> attributes,
Optional<Map<String,Text>> texts,
Optional<Params> params)
Constructs an instance.
|
protected |
ParamsEntity(ParamsEntity other)
Constructs an instance from an other.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
|
Params |
getParams()
Gets the Params of this Entity.
|
int |
hashCode() |
void |
setParams(Optional<Params> params)
Sets the params of this entity.
|
addText, getAttributes, getAttributes, getTexts, setAttributes
compareTo, getName, getNameInUpperCase, getThisLogger, getUUID, setName, setUUID, toString
copy, getElementName, getPrefix, getReferenceName
protected ParamsEntity()
protected ParamsEntity(@Nonnull ParamsEntity other)
other
- The other instance.protected ParamsEntity(@Nonnull Optional<String> name, @Nonnull Optional<UUID> uuid, @Nonnull Optional<KeyedGroups> attributes, @Nonnull Optional<Map<String,Text>> texts, @Nonnull Optional<Params> params)
name
- The optional entity name.uuid
- The optional entity UUID.attributes
- The optional attributes.texts
- The optional texts.params
- The params.public boolean equals(Object other)
For two Entity
to be equal, they must at least be instances of
the same class, have the same UUID
and name.
For two Metadata
Entity
to be equal, they must at
least be instances of the same class, have the same UUID
,
Attributes
, name and descriptive texts.
equals
in class MetadataEntity
@Nonnull @CheckReturnValue public final Params getParams()
public int hashCode()
hashCode
in class MetadataEntity
public final void setParams(@Nonnull Optional<Params> params)
params
- The optional params.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.