public class ArrayCache
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ArrayCache.DoubleResult |
static class |
ArrayCache.FloatResult |
| Constructor and Description |
|---|
ArrayCache()
ctor
|
ArrayCache(boolean enabled)
ctor
|
| Modifier and Type | Method and Description |
|---|---|
void |
finalize() |
ArrayCache.DoubleResult |
get(java.lang.String key,
double[][] input)
Get the converted value for the specified key and input pairs
|
ArrayCache.FloatResult |
get(java.lang.String key,
float[][] input)
Get the converted value for the specified key and input pairs
|
void |
put(java.lang.String key,
double[][] input,
ArrayCache.DoubleResult results)
Put the converted value for the specified key and input pairs
|
void |
put(java.lang.String key,
float[][] input,
ArrayCache.FloatResult results)
Put the converted value for the specified key and input pairs
|
public ArrayCache()
public ArrayCache(boolean enabled)
enabled - If false then never cachepublic ArrayCache.FloatResult get(java.lang.String key, float[][] input)
key - The key (e.g., "toReference", "fromReference")input - The inputpublic ArrayCache.DoubleResult get(java.lang.String key, double[][] input)
key - The key (e.g., "toReference", "fromReference")input - The inputpublic void put(java.lang.String key,
double[][] input,
ArrayCache.DoubleResult results)
key - The keyinput - The input arrayresults - The array to storepublic void put(java.lang.String key,
float[][] input,
ArrayCache.FloatResult results)
key - The keyinput - The input arrayresults - The array to storepublic void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable