public class PredictionContextCache extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<PredictionContext,PredictionContext> |
cache |
Constructor and Description |
---|
PredictionContextCache() |
Modifier and Type | Method and Description |
---|---|
PredictionContext |
add(PredictionContext ctx)
Add a context to the cache and return it.
|
PredictionContext |
get(PredictionContext ctx) |
int |
size() |
protected Map<PredictionContext,PredictionContext> cache
public PredictionContext add(PredictionContext ctx)
public PredictionContext get(PredictionContext ctx)
public int size()
Copyright © 2012. All Rights Reserved.