net.ajaest.data.kanji
Class KanjiStroke

java.lang.Object
  extended by net.ajaest.data.kanji.KanjiStroke
All Implemented Interfaces:
KanjiReference

public class KanjiStroke
extends java.lang.Object
implements KanjiReference

Generic inmutable class that represents a kanji stroke.

Author:
Luis Alfonso Arce González

Field Summary
private  java.util.List<AllowedStrokeLineEnum> strokeList
           
private  java.lang.Integer unicodeRef
           
 
Constructor Summary
KanjiStroke(java.util.List<AllowedStrokeLineEnum> strokeList, java.lang.Integer unicodeRef)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.List<AllowedStrokeLineEnum> getStrokeList()
           
 java.lang.Integer getUnicodeRef()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

unicodeRef

private java.lang.Integer unicodeRef

strokeList

private java.util.List<AllowedStrokeLineEnum> strokeList
Constructor Detail

KanjiStroke

public KanjiStroke(java.util.List<AllowedStrokeLineEnum> strokeList,
                   java.lang.Integer unicodeRef)
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getStrokeList

public java.util.List<AllowedStrokeLineEnum> getStrokeList()
Returns:
The sorted list of lines that compounds the stroke

getUnicodeRef

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object