Class NGramList
- java.lang.Object
-
- com.ibm.icu.dev.tool.charsetdet.sbcs.NGramList
-
public class NGramList extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NGramList.NGram
static interface
NGramList.NGramKeyMapper
-
Field Summary
Fields Modifier and Type Field Description private NGramList.NGramKeyMapper
keyMapper
protected int
N_GRAM_SIZE
protected java.util.TreeMap
ngrams
protected int
totalNGrams
protected int
uniqueNGrams
-
Constructor Summary
Constructors Constructor Description NGramList(NGramList.NGramKeyMapper theMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NGramList.NGram
get(java.lang.Object mappedKey)
NGramList.NGram
get(java.lang.String key)
int
getTotalNGrams()
int
getUniqueNGrams()
java.util.Collection
keys()
void
put(java.lang.String key)
void
setMapper(NGramList.NGramKeyMapper nGramKeyMapper)
java.util.Collection
values()
-
-
-
Field Detail
-
ngrams
protected java.util.TreeMap ngrams
-
totalNGrams
protected int totalNGrams
-
uniqueNGrams
protected int uniqueNGrams
-
N_GRAM_SIZE
protected final int N_GRAM_SIZE
- See Also:
- Constant Field Values
-
keyMapper
private NGramList.NGramKeyMapper keyMapper
-
-
Constructor Detail
-
NGramList
public NGramList(NGramList.NGramKeyMapper theMapper)
-
-
Method Detail
-
setMapper
public void setMapper(NGramList.NGramKeyMapper nGramKeyMapper)
-
get
public NGramList.NGram get(java.lang.Object mappedKey)
-
get
public NGramList.NGram get(java.lang.String key)
-
put
public void put(java.lang.String key)
-
values
public java.util.Collection values()
-
keys
public java.util.Collection keys()
-
getTotalNGrams
public int getTotalNGrams()
-
getUniqueNGrams
public int getUniqueNGrams()
-
-