public class PredefinedValue
Used to deal with entities composed of a predefined list of values.
| Constructor and Description |
|---|
PredefinedValue(java.lang.String value,
java.util.Map<java.util.Locale,? extends java.util.List<java.lang.String>> labels)
Used to deal with entities composed of a predefined list of values.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
component1()
The reference value.
|
java.util.Map<java.util.Locale,java.util.List> |
component2()
The list of possible values for each locale.
|
PredefinedValue |
copy(java.lang.String value,
java.util.Map<java.util.Locale,? extends java.util.List<java.lang.String>> labels)
Used to deal with entities composed of a predefined list of values.
|
boolean |
equals(java.lang.Object p) |
java.util.Map<java.util.Locale,java.util.List> |
getLabels()
The list of possible values for each locale.
|
java.lang.String |
getValue()
The reference value.
|
int |
hashCode() |
java.lang.String |
toString() |
public PredefinedValue(@NotNull
java.lang.String value,
@NotNull
java.util.Map<java.util.Locale,? extends java.util.List<java.lang.String>> labels)
Used to deal with entities composed of a predefined list of values.
value - The reference value.labels - The list of possible values for each locale.@NotNull public java.lang.String getValue()
The reference value.
@NotNull public java.util.Map<java.util.Locale,java.util.List> getLabels()
The list of possible values for each locale.
@NotNull public java.lang.String component1()
The reference value.
@NotNull public java.util.Map<java.util.Locale,java.util.List> component2()
The list of possible values for each locale.
@NotNull public PredefinedValue copy(@NotNull java.lang.String value, @NotNull java.util.Map<java.util.Locale,? extends java.util.List<java.lang.String>> labels)
Used to deal with entities composed of a predefined list of values.
@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable
java.lang.Object p)