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, getClassicRadical, getDicReferences, getFrequency, getGrade, getGraph, getJisCode, getJLPTLevel, getMeanings, getNelsonRadical, getQueryCodes, getReadings, getStrokeCount, getStrokeMiscounts, getUnicode, getVariants, hashCode, isKanji, kanaToRomaji, main, 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)
setDicReferences
public void setDicReferences(java.util.Set<DicReferencePair> dicReferences)
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)
setMeanings
public void setMeanings(java.util.Set<MeaningEntry> meanings)
setNelsonRadical
public void setNelsonRadical(java.lang.Integer nelsonRadical)
setQueryCodes
public void setQueryCodes(KanjiQueryCodes queryCodes)
setReadings
public void setReadings(java.util.Set<ReadingEntry> readings)
setStrokeCount
public void setStrokeCount(java.lang.Integer strokeCount)
setStrokeMiscounts
public void setStrokeMiscounts(java.util.Set<java.lang.Integer> strokeMiscounts)
setVariants
public void setVariants(java.util.Set<VariantPair> variants)