Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Determines if this entry equals to the specified one.
|
String |
getComment()
Returns comment corresponding to this entry for default locale.
|
String |
getComment(Locale locale)
Returns comment corresponding to this entry for the specified locale.
|
Constraint<? super V> |
getConstraint()
Returns constraint to be used for value validation.
|
Converter<V> |
getConverter()
Returns converter to be used for value conversion into and from
string representation.
|
V |
getDefaultValue()
Returns default value of this entry.
|
String |
getKey()
Returns key corresponding to this entry.
|
String |
getLocalizedValue()
Returns localized string representation of value corresponding to
this entry.
|
String |
getLocalizedValue(Locale locale)
Returns localized string representation of value corresponding to
this entry.
|
ConstrainedMap |
getMap()
Returns map this entry belongs to.
|
String |
getRawValue()
Returns default string representation of value corresponding to this
entry.
|
Class<V> |
getType()
Returns this entry value type.
|
V |
getValue()
Returns value corresponding to this entry.
|
int |
hashCode()
Returns a hash code value for this entry.
|
boolean |
isDefault()
Determines if this entry value equals to default value.
|
boolean |
isRequired()
Determines if this entry requires value.
|
V |
resetValue()
Resets value of this entry.
|
V |
resetValue(Locale locale)
Resets value of this entry.
|
V |
setLocalizedValue(String value)
Assigns the specified value for this entry.
|
V |
setLocalizedValue(String value,
Locale locale)
Assigns the specified value for this entry.
|
V |
setRawValue(String value)
Assigns the specified value for this entry.
|
V |
setRawValue(String value,
Locale locale)
Assigns the specified value for this entry.
|
V |
setValue(Object value)
Assigns the specified value for this entry.
|
V |
setValue(Object value,
Locale locale)
Assigns the specified value for this entry.
|
String |
toString()
Returns string representing this entry.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
comparingByKey, comparingByKey, comparingByValue, comparingByValue
public ConstrainedMap getMap()
public String getKey()
public V getDefaultValue()
public Converter<V> getConverter()
public Constraint<? super V> getConstraint()
null
.public boolean isRequired()
true
if this entry requires value;
false
otherwise.public String getComment()
getComment(Locale)
public String getComment(Locale locale)
locale
- Desired locale.public V getValue()
public V setValue(Object value)
setValue
in interface Map.Entry<String,Object>
value
- Value to be assigned for this entry.ValidationException
- if violations occured.setValue(Object, Locale)
public V setValue(Object value, Locale locale)
value
- Value to be assigned for this entry.locale
- Locale to be used for error messages.ValidationException
- if violations occured.ConstrainedMap.Transaction.setValue(String, Object)
public String getRawValue()
public String getLocalizedValue()
getLocalizedValue(Locale)
public String getLocalizedValue(Locale locale)
locale
- Desired locale.public V setRawValue(String value)
value
- Default string representation of value to be assigned
for this entry.ValidationException
- if violations occured.setRawValue(String, Locale)
public V setRawValue(String value, Locale locale)
value
- Default string representation of value to be assigned
for this entry.locale
- Locale to be used for error messages.ValidationException
- if violations occured.ConstrainedMap.Transaction.setRawValue(String, String)
public V setLocalizedValue(String value)
value
- Localized string representation of value to be assigned
for this entry.ValidationException
- if violations occured.setLocalizedValue(String, Locale)
public V setLocalizedValue(String value, Locale locale)
value
- Localized string representation of value to be assigned
for this entry.locale
- Desired locale.ValidationException
- if violations occured.ConstrainedMap.Transaction.setLocalizedValue(String, String)
public V resetValue()
ValidationException
- if violations occured.resetValue(Locale)
public V resetValue(Locale locale)
locale
- Locale to be used for error messages.ValidationException
- if violations occured.setValue(Object, Locale)
public boolean isDefault()
true
if this entry value equals to default
value; false
otherwise.public int hashCode()
public boolean equals(Object obj)
Copyright © 2011–2020 FoxLabs. All rights reserved.