T - data type for KeyR - data type for Record (value)public interface Storable<T,R>
public class ABC implements Storable <String, String> { ... }
| Modifier and Type | Method and Description |
|---|---|
<E extends Throwable> |
close()
Close the storable
|
<E extends Throwable> |
delete(T key)
Delete a record
|
<E extends Throwable> |
get(T key)
Get a record for the key.
|
<E extends Throwable> |
set(T key,
R rec)
Add a record with the key.
|
<E extends Throwable> R get(T key) throws E extends Throwable
E - any exceptionkey - to the recordE - any exceptionE extends Throwable<E extends Throwable> boolean set(T key, R rec) throws E extends Throwable
E - any exceptionkey - to the record.rec - to save.E - any exceptionE extends Throwable<E extends Throwable> boolean delete(T key) throws E extends Throwable
E - any exceptionkey - to the recordE - any exceptionE extends ThrowableCopyright © 2023. All rights reserved.