Package org.drools.core.common
Interface Storage<K,V>
-
- Type Parameters:
K-V-
- All Known Implementing Classes:
MapStorage
public interface Storage<K,V>This interface represents the minimal abstraction to store data. It might be merged into ObjectStore in the long run. See drools-reliability module for alternative implementations
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidclear()booleancontainsKey(K key)default voidflush()static <K,V>
Storage<K,V>fromMap(java.util.Map<K,V> input)Vget(K key)VgetOrDefault(K key, V value)booleanisEmpty()java.util.Set<K>keySet()Vput(K key, V value)voidputAll(java.util.Map<? extends K,? extends V> otherMap)Vremove(K key)default booleanrequiresFlush()intsize()java.util.Collection<V>values()
-
-
-
Method Detail
-
containsKey
boolean containsKey(K key)
-
keySet
java.util.Set<K> keySet()
-
values
java.util.Collection<V> values()
-
clear
void clear()
-
size
int size()
-
isEmpty
boolean isEmpty()
-
requiresFlush
default boolean requiresFlush()
-
flush
default void flush()
-
fromMap
static <K,V> Storage<K,V> fromMap(java.util.Map<K,V> input)
-
-