|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
java.lang.Objectnet.trialpc.sticktools.model.AbstractLangModel
net.trialpc.sticktools.model.BaseModel
net.trialpc.sticktools.model.BaseDocument
public class BaseDocument
基本となる文書モデルのクラスです。 このクラスの自然順序付けは、文書 ID について昇順です。
DocCollection,
DocumentModel,
直列化された形式| フィールドの概要 |
|---|
| クラス net.trialpc.sticktools.model.BaseModel から継承されたフィールド |
|---|
listeners |
| コンストラクタの概要 | |
|---|---|
BaseDocument(java.lang.String id)
文書 ID を指定して BaseDocument インスタンスを生成します。 |
|
| メソッドの概要 | |
|---|---|
int |
compareTo(DocumentModel arg0)
|
boolean |
equals(java.lang.Object o)
言語モデルが同一であるかを返します。 |
java.lang.String |
getDocumentId()
文書 ID を返します。 |
int |
hashCode()
ハッシュコードを返します。 |
static BaseDocument |
unmodifiableDocument(BaseDocument d)
変更不可能な BaseDocument インスタンスを返します。 |
| クラス 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 BaseDocument(java.lang.String id)
BaseDocument インスタンスを生成します。
null が与えられた場合は、空文字が文書 ID になります。
id - 文書 ID| メソッドの詳細 |
|---|
public java.lang.String getDocumentId()
DocumentModel の記述:
DocumentModel 内の getDocumentIdpublic static BaseDocument unmodifiableDocument(BaseDocument d)
変更不可能な BaseDocument インスタンスを返します。
返されるインスタンスは、引数 d と同じ文書 ID を持ちます。
コピー元の BaseDocument インスタンスの内容はコピーされます(シャローコピー)。
そのため、コピー元のインスタンスの内容を変更しても、コピー先には反映されません。
d - 変更不可能な文書モデルの元になるインスタンス
BaseDocument インスタンス
java.lang.NullPointerException - d が null である場合public int hashCode()
BaseModel の記述:
BaseModel 内の hashCodepublic boolean equals(java.lang.Object o)
BaseModel の記述:
BaseModel 内の equalso - 比較対象のインスタンス
truepublic int compareTo(DocumentModel arg0)
java.lang.Comparable<DocumentModel> 内の compareTo
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||