public class SyllableCounter extends Object
| Constructor and Description |
|---|
SyllableCounter() |
SyllableCounter(int maxCacheSize) |
| Modifier and Type | Method and Description |
|---|---|
int |
count(String word)
Main point of this library.
|
int |
getCurrentCacheSize()
Getter for the current cash size.
|
void |
setMaxCacheSize(int maxCacheSize)
Setter for the maximum cash size.
|
public SyllableCounter()
public SyllableCounter(int maxCacheSize)
public void setMaxCacheSize(int maxCacheSize)
maxCacheSize - the new maximum size of the cache. Negative to
disable caching. Won't clean a cache that was bigger than the new size
before.public int getCurrentCacheSize()
public int count(String word)
word - the word you want to count the syllables of.Copyright © 2015. All rights reserved.