net.ajaest.data.kanji
Class Kanji
java.lang.Object
net.ajaest.data.kanji.KanjiTag
net.ajaest.data.kanji.Kanji
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<KanjiTag>
public class Kanji
- extends KanjiTag
Mutable class that stores some different informations about a kanji
- Author:
- Luis Alfonso Arce González
- See Also:
- Serialized Form
Fields inherited from class net.ajaest.data.kanji.KanjiTag |
classicRadical, dicReferences, frequency, grade, graph, jisCode, JLPTLevel, meanings, nelsonRadical, queryCodes, readings, strokeCount, strokeMiscounts, unicode, variants |
Constructor Summary |
Kanji(char[] c)
Constructs a kanji extracting the code point of the stored char
in the position 0 of the char array. |
Kanji(java.lang.Character c)
Constructs a kanji from a character representation of a kanji. |
Kanji(int unicode)
Constructs a kanji by his unicode value, that will be used as primary
key. |
Kanji(java.lang.Integer unicode)
Constructs a kanji by his unicode value, that will be used as primary
key. |
Methods inherited from class net.ajaest.data.kanji.KanjiTag |
compareTo, equals, formattedDescriptionString, getByEnum, getByEnum, getClassicRadical, getFrequency, getGrade, getGraph, getJisCode, getJLPTLevel, getNelsonRadical, getQueryCodes, getStrokeCount, getUnicode, hashCode, isKanji, kanaToRomaji, toChar, toRomaji, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
Kanji
public Kanji(char[] c)
- Constructs a kanji extracting the code point of the stored
char
in the position 0 of the char
array. It work with surrogates.
- Parameters:
c
- char
representation of a kanji.
- Throws:
java.lang.IllegalArgumentException
- If the
Kanji
public Kanji(java.lang.Character c)
- Constructs a kanji from a character representation of a kanji. It does
not support surrogation.
- Parameters:
c
- kanji character
Kanji
public Kanji(int unicode)
- Constructs a kanji by his unicode value, that will be used as primary
key.
Kanji
public Kanji(java.lang.Integer unicode)
- Constructs a kanji by his unicode value, that will be used as primary
key.
setClassicRadical
public void setClassicRadical(java.lang.Integer classicRadical)
getDicReferences
public java.util.Set<DicReferencePair> getDicReferences()
- Overrides:
getDicReferences
in class KanjiTag
setFrequency
public void setFrequency(java.lang.Integer frequency)
setGrade
public void setGrade(java.lang.Integer grade)
setGraph
public void setGraph(KanjiGraph graph)
setJisCode
public void setJisCode(JISPair jisCode)
setJLPTLevel
public void setJLPTLevel(java.lang.Integer jLPTLevel)
getMeanings
public java.util.Set<MeaningEntry> getMeanings()
- Overrides:
getMeanings
in class KanjiTag
setNelsonRadical
public void setNelsonRadical(java.lang.Integer nelsonRadical)
setQueryCodes
public void setQueryCodes(KanjiQueryCodes queryCodes)
getReadings
public java.util.Set<ReadingEntry> getReadings()
- Overrides:
getReadings
in class KanjiTag
setStrokeCount
public void setStrokeCount(java.lang.Integer strokeCount)
getStrokeMiscounts
public java.util.Set<java.lang.Integer> getStrokeMiscounts()
- Overrides:
getStrokeMiscounts
in class KanjiTag
getVariants
public java.util.Set<VariantPair> getVariants()
- Overrides:
getVariants
in class KanjiTag
setStrokeMiscounts
public void setStrokeMiscounts(java.util.Set<java.lang.Integer> strokeMis)
setDicReferences
public void setDicReferences(java.util.Set<DicReferencePair> drp)
setReadings
public void setReadings(java.util.Set<ReadingEntry> res)
setMeanings
public void setMeanings(java.util.Set<MeaningEntry> men)
setVariants
public void setVariants(java.util.Set<VariantPair> var)