public class TestMemStore<V extends JSONEntry> extends HashMap<Identifier,V> implements JSONStore<V>
Created by Jeff Gaynor
on 6/6/19 at 6:23 PM
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
TestMemStore() |
Modifier and Type | Method and Description |
---|---|
V |
create()
Create a new object of the given type.
|
List<V> |
getAll()
Method to get every element in the store.
|
XMLConverter<V> |
getXMLConverter() |
void |
register(V value)
Almost Identical to put(K,V) but since the object should have an identifier, passing along the key is redundant.
|
void |
save(V value)
Saves an object.
|
List<V> |
search(String key,
String condition,
boolean isRegEx)
Allows for searching via a reg ex.
|
void |
update(V value)
Update an existing object.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public List<V> getAll()
Store
public V create()
Store
public void update(V value)
Store
public void register(V value)
Store
public void save(V value)
Store
public XMLConverter<V> getXMLConverter()
getXMLConverter
in interface Store<V extends JSONEntry>
Copyright © 2019. All Rights Reserved.