public final class Record extends Object implements Cloneable, Serializable
Record can store multiple Values for different Locales.
It can also provide single and multiple Values for any specific Locale if such exist.LanguageManager,
Language,
Dictionary,
Value,
Serialized Form| Constructor and Description |
|---|
Record()
Constructs new
Record. |
Record(String key)
Constructs new
Record. |
Record(String key,
List<Value> values)
Constructs new
Record. |
Record(String key,
Value... values)
Constructs new
Record. |
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(Value value)
|
void |
clearValues()
|
protected void |
collectAllCodes(List<String> codes)
Collects all language codes from this
Record. |
protected void |
collectAllLocales(List<Locale> locales)
|
String |
getKey()
Returns
Record key within its Dictionary. |
Value |
getValue(Locale locale)
|
List<Value> |
getValues()
|
List<Value> |
getValues(Locale locale)
|
boolean |
hasValue(Locale locale)
|
void |
removeValue(Value value)
|
void |
setKey(String key)
Sets
Record key within its Dictionary. |
void |
setValues(List<Value> values)
|
String |
toString() |
String |
toString(boolean boldKey)
Returns
Record text representation. |
int |
valuesCount()
|
public Record()
Record.public Record(@NotNull String key)
Record.key - Record key within its Dictionarypublic Record(@NotNull String key, @NotNull Value... values)
Record.key - Record key within its Dictionaryvalues - Values for new Record@NotNull public String getKey()
Record key within its Dictionary.Record key within its Dictionarypublic void setKey(@NotNull String key)
Record key within its Dictionary.key - new Record key within its Dictionarypublic void clearValues()
protected void collectAllCodes(@NotNull List<String> codes)
Record.codes - List to put language codes intoCopyright © 2020. All rights reserved.