net.ajaest.jdk.data.auxi
Class KanjiStringPair

java.lang.Object
  extended by 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)
           
 
Method Summary
 java.lang.String getFirst()
           
 java.lang.String getSecond()
           
 java.lang.Integer getUnicodeRef()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

unicodeRef

private java.lang.Integer unicodeRef

first

private java.lang.String first

second

private java.lang.String second
Constructor Detail

KanjiStringPair

public KanjiStringPair(java.lang.String first,
                       java.lang.String second,
                       java.lang.Integer unicodeRef)
Method Detail

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.