com.castle.store.WritableKeyStore Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of castle Show documentation
Show all versions of castle Show documentation
A generic utility library
package com.castle.store;
import com.castle.store.exceptions.StoreException;
import java.util.Collection;
import java.util.Map;
import java.util.Optional;
public interface WritableKeyStore {
Optional store(K key, V value) throws StoreException;
void storeAll(Map extends K, ? extends V> values) throws StoreException;
boolean delete(K key) throws StoreException;
boolean deleteAll(Collection extends K> keys) throws StoreException;
}