introduced newKeyInstance and newValueInstance

This commit is contained in:
Rob Austin
2014-12-10 17:21:30 +00:00
parent 8d347e4f28
commit 18554f4ccc
7 changed files with 140 additions and 64 deletions
@@ -177,6 +177,16 @@ class StatelessChronicleMap<K, V> implements ChronicleMap<K, V>, Closeable, Clon
throw new UnsupportedOperationException();
}
@Override
public V newValueInstance() {
return VanillaChronicleMap.newInstance(vClass, false);
}
@Override
public K newKeyInstance() {
return VanillaChronicleMap.newInstance(kClass, true);
}
private ExecutorService lazyExecutorService() {
if (executorService == null) {
synchronized (this) {