net.ajaest.data.kanji
Class KanjiStringPair

java.lang.Object
  extended by net.ajaest.data.auxi.Pair<java.lang.String,java.lang.String>
      extended by net.ajaest.data.kanji.KanjiStringPair
All Implemented Interfaces:
KanjiReference
Direct Known Subclasses:
DicReferencePair, JISPair, VariantPair

public class KanjiStringPair
extends Pair<java.lang.String,java.lang.String>
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.Integer unicodeRef
           
 
Constructor Summary
KanjiStringPair(java.lang.String first, java.lang.String second, java.lang.Integer unicodeRef)
           
 
Method Summary
 java.lang.Integer getUnicodeRef()
           
 void setFirst(java.lang.String first)
          The object it's intended to be inmutable, so it will always throw UnsupportedOperationException
 void setSecond(java.lang.String second)
          The object it's intended to be inmutable, so it will always throw UnsupportedOperationException
 
Methods inherited from class net.ajaest.data.auxi.Pair
equals, getFirst, getSecond, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

unicodeRef

private java.lang.Integer unicodeRef
Constructor Detail

KanjiStringPair

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

getUnicodeRef

public java.lang.Integer getUnicodeRef()
Specified by:
getUnicodeRef in interface KanjiReference
Returns:
the unicode value of the referenced kanji.

setFirst

public final void setFirst(java.lang.String first)
The object it's intended to be inmutable, so it will always throw UnsupportedOperationException

Overrides:
setFirst in class Pair<java.lang.String,java.lang.String>
Throws:
java.lang.UnsupportedOperationException

setSecond

public final void setSecond(java.lang.String second)
The object it's intended to be inmutable, so it will always throw UnsupportedOperationException

Overrides:
setSecond in class Pair<java.lang.String,java.lang.String>
Throws:
java.lang.UnsupportedOperationException