net.ajaest.jdk.data.auxi
Class KanjiStringPair
java.lang.Object
net.ajaest.jdk.data.auxi.KanjiStringPair
- All Implemented Interfaces:
- KanjiReference
- Direct Known Subclasses:
- DicReferencePair, JISPair, VariantPair
public class KanjiStringPair
- extends java.lang.Object
- implements KanjiReference
Generic immutable class that stores two strings in order to reference some of
the kanji properties.
- Author:
- Luis Alfonso Arce González
Field Summary |
private java.lang.String |
first
|
private java.lang.String |
second
|
private java.lang.Integer |
unicodeRef
|
Constructor Summary |
KanjiStringPair(java.lang.String first,
java.lang.String second,
java.lang.Integer unicodeRef)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
unicodeRef
private java.lang.Integer unicodeRef
first
private java.lang.String first
second
private java.lang.String second
KanjiStringPair
public KanjiStringPair(java.lang.String first,
java.lang.String second,
java.lang.Integer unicodeRef)
getFirst
public java.lang.String getFirst()
getSecond
public java.lang.String getSecond()
getUnicodeRef
public java.lang.Integer getUnicodeRef()
- Specified by:
getUnicodeRef
in interface KanjiReference
- Returns:
- the unicode value of the referenced kanji.