|
Jacson | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.spieleck.app.ngramj.CountedNGram
public class CountedNGram
An n-gram attached with a counter.
| Field Summary | |
|---|---|
protected int |
count
|
protected NGram |
gram
|
| Constructor Summary | |
|---|---|
CountedNGram(byte[] ba,
int start,
int len)
|
|
CountedNGram(NGram ng)
|
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object e1)
|
boolean |
equals(byte[] bytes,
int start,
int length)
Compare a ngram to a bunch of bytes |
boolean |
equals(java.lang.Object e1)
|
int |
getByte(int pos)
Return a single byte of the NGram. |
int |
getCount()
|
NGram |
getNGram()
|
NGramImpl |
getNGramImpl()
Hand out a special representation of yourself |
int |
getSize()
Returns the size of an ngram in bytes. |
int |
hashCode()
|
void |
inc()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int count
protected NGram gram
| Constructor Detail |
|---|
public CountedNGram(NGram ng)
public CountedNGram(byte[] ba,
int start,
int len)
| Method Detail |
|---|
public int hashCode()
hashCode in class java.lang.Objectpublic int getCount()
public void inc()
public NGram getNGram()
public int compareTo(java.lang.Object e1)
compareTo in interface java.lang.Comparablepublic boolean equals(java.lang.Object e1)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int getSize()
NGram
getSize in interface NGrampublic int getByte(int pos)
getByte in interface NGramArrayIndexOutOfBoundException - (implicitly)
public boolean equals(byte[] bytes,
int start,
int length)
equals in interface NGrampublic NGramImpl getNGramImpl()
getNGramImpl in interface NGram
|
spieleck.de | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||