mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
introduced newKeyInstance and newValueInstance
This commit is contained in:
@@ -247,5 +247,14 @@ public interface ChronicleMap<K, V> extends ConcurrentMap<K, V>, ChronicleHash {
|
||||
*/
|
||||
void putAll(File fromFile) throws IOException;
|
||||
|
||||
/**
|
||||
* @return a new empty instance based on the Value type
|
||||
*/
|
||||
V newValueInstance();
|
||||
|
||||
/**
|
||||
* @return a new empty instance based on the Key type
|
||||
*/
|
||||
K newKeyInstance();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user