public abstract class ValidatorDefEntity extends AbstractEntity
| Modifier and Type | Class and Description |
|---|---|
static class |
ValidatorDefEntity.Builder
Builder.
|
UUID_COMPARATOR| Modifier | Constructor and Description |
|---|---|
protected |
ValidatorDefEntity()
Constructs an instance.
|
protected |
ValidatorDefEntity(Optional<String> name,
Optional<UUID> uuid,
boolean hidden,
boolean multiple)
Constructs an instance.
|
protected |
ValidatorDefEntity(ValidatorDefEntity other)
Constructs an instance from an other.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
|
abstract String |
getTarget()
Gets this validator's target.
|
int |
hashCode() |
boolean |
isHidden()
Gets the hidden indicator.
|
boolean |
isMultiple()
Asks if this validator allows multiple values.
|
void |
setHidden(boolean hidden)
Sets the hidden indicator.
|
void |
setMultiple(boolean multiple)
Remembers if this ValidatorDef allows multiple values.
|
compareTo, getAttributes, getName, getNameInUpperCase, getThisLogger, getUUID, setName, setUUID, toStringcopy, getElementName, getPrefix, getReferenceNameprotected ValidatorDefEntity()
protected ValidatorDefEntity(@Nonnull
ValidatorDefEntity other)
other - The other instance.protected ValidatorDefEntity(@Nonnull
Optional<String> name,
@Nonnull
Optional<UUID> uuid,
boolean hidden,
boolean multiple)
name - The optional entity name.uuid - The optional entity UUID.hidden - True if hidden.multiple - True if multiple.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.
equals in class AbstractEntity@Nonnull @CheckReturnValue public abstract String getTarget()
public int hashCode()
hashCode in class AbstractEntity@CheckReturnValue public final boolean isHidden()
@CheckReturnValue public final boolean isMultiple()
public final void setHidden(boolean hidden)
hidden - The hidden indicator.public final void setMultiple(boolean multiple)
multiple - True when a refering item can have more than one value.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.