net.ajaest.data.kanji
Class KanjiStringListEntry
java.lang.Object
net.ajaest.data.auxi.ListEntry<java.lang.String,java.lang.String>
net.ajaest.data.kanji.KanjiStringListEntry
- All Implemented Interfaces:
- KanjiReference
- Direct Known Subclasses:
- MeaningEntry, ReadingEntry
public class KanjiStringListEntry
- extends ListEntry<java.lang.String,java.lang.String>
- implements KanjiReference
Generic immutable class that stores a list of String
associated to a
String
key in order to reference some of the kanji properties.
- Author:
- Luis Alfonso Arce González
Field Summary |
private java.lang.Integer |
unicodeRef
|
Constructor Summary |
KanjiStringListEntry(java.lang.String key,
java.util.Set<java.lang.String> elements,
java.lang.Integer unicodeRef)
|
Method Summary |
java.util.Set<java.lang.String> |
getElements()
Returns the immutable list of elements. |
java.lang.Integer |
getUnicodeRef()
|
void |
setElements(java.util.Set<java.lang.String> elements)
The object it's intended to be inmutable, so it will always throw UnsupportedOperationException |
void |
setKey(java.lang.String key)
The object it's intended to be inmutable, so it will always throw UnsupportedOperationException |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
unicodeRef
private java.lang.Integer unicodeRef
KanjiStringListEntry
public KanjiStringListEntry(java.lang.String key,
java.util.Set<java.lang.String> elements,
java.lang.Integer unicodeRef)
getElements
public java.util.Set<java.lang.String> getElements()
- Returns the immutable list of elements. Read the constructor or class
info for further information about the meaning of "elements".
- Overrides:
getElements
in class ListEntry<java.lang.String,java.lang.String>
getUnicodeRef
public java.lang.Integer getUnicodeRef()
- Specified by:
getUnicodeRef
in interface KanjiReference
- Returns:
- the unicode value of the referenced kanji.
setElements
public void setElements(java.util.Set<java.lang.String> elements)
- The object it's intended to be inmutable, so it will always throw
UnsupportedOperationException
- Overrides:
setElements
in class ListEntry<java.lang.String,java.lang.String>
- Parameters:
elements
- List
of elements
- Throws:
java.lang.UnsupportedOperationException
setKey
public void setKey(java.lang.String key)
- The object it's intended to be inmutable, so it will always throw
UnsupportedOperationException
- Overrides:
setKey
in class ListEntry<java.lang.String,java.lang.String>
- Throws:
java.lang.UnsupportedOperationException