|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
java.lang.Objectnet.trialpc.sticktools.model.AbstractLangModel
net.trialpc.sticktools.model.BaseModel
net.trialpc.sticktools.model.BaseSentence
public class BaseSentence
基本となる文モデルのクラスです。
SentenceModel,
直列化された形式| フィールドの概要 |
|---|
| クラス net.trialpc.sticktools.model.BaseModel から継承されたフィールド |
|---|
listeners |
| コンストラクタの概要 | |
|---|---|
BaseSentence(java.lang.String id)
文 ID を指定して BaseSentence インスタンスを生成します。 |
|
| メソッドの概要 | |
|---|---|
int |
compareTo(SentenceModel o)
文 ID に対して昇順になるような自然順序付けを提供します。 |
boolean |
equals(java.lang.Object o)
言語モデルが同一であるかを返します。 |
java.lang.String |
getSentenceId()
文の ID を返します。 |
int |
hashCode()
ハッシュコードを返します。 |
static BaseSentence |
unmodifiableSentence(BaseSentence s)
変更不可能な BaseSentence インスタンスを返します。 |
| クラス net.trialpc.sticktools.model.BaseModel から継承されたメソッド |
|---|
addListener, addTerm, addTerms, castCollection, castMap, getTerms, getVocabulary, isEmpty, notify, numOfTerms, numOfVocabulary, setTerms, termCount, toString |
| クラス net.trialpc.sticktools.model.AbstractLangModel から継承されたメソッド |
|---|
containsTerm, containsTerms, contaisQueries, isModifiable, termFrequency |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| インタフェース net.trialpc.sticktools.model.LangModel から継承されたメソッド |
|---|
containsTerm, containsTerms, getVocabulary, isModifiable, numOfTerms, numOfVocabulary, termCount, termFrequency |
| インタフェース net.trialpc.sticktools.model.StateChangeObservable から継承されたメソッド |
|---|
addListener |
| コンストラクタの詳細 |
|---|
public BaseSentence(java.lang.String id)
BaseSentence インスタンスを生成します。
id - 文 ID| メソッドの詳細 |
|---|
public java.lang.String getSentenceId()
SentenceModel の記述:
SentenceModel 内の getSentenceIdpublic static BaseSentence unmodifiableSentence(BaseSentence s)
BaseSentence インスタンスを返します。
s - 変更不可能なインスタンスの基となるインスタンス
java.lang.NullPointerException - s が null の場合public int hashCode()
BaseModel の記述:
BaseModel 内の hashCodepublic boolean equals(java.lang.Object o)
BaseModel の記述:
BaseModel 内の equalso - 比較対象のインスタンス
truepublic int compareTo(SentenceModel o)
文 ID に対して昇順になるような自然順序付けを提供します。
この実装では、this.equals(another) が true
となるインスタンス another に対しては this.compareTo(another) == 0
となりますが、その逆は必ずしも成り立ちません。
ただし、文 ID が必ず一意であると保障されているならば、常に逆も成り立ちます。
java.lang.Comparable<SentenceModel> 内の compareToo - 比較対象のオブジェクト
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||