|
Jacson | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.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.Object
public int getCount()
public void inc()
public NGram getNGram()
public int compareTo(java.lang.Object e1)
compareTo
in interface java.lang.Comparable
public boolean equals(java.lang.Object e1)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int getSize()
NGram
getSize
in interface NGram
public int getByte(int pos)
getByte
in interface NGram
ArrayIndexOutOfBoundException
- (implicitly)public boolean equals(byte[] bytes, int start, int length)
equals
in interface NGram
public NGramImpl getNGramImpl()
getNGramImpl
in interface NGram
|
spieleck.de | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |