Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.robrua.orianna.store;
 
 import java.util.List;
 
Interface for local storage, be it in-memory, on disk, or otherwise

Author(s):
Rob Rua (FatalElement - NA) (robrua@alumni.cmu.edu)
public interface DataStore {
    

Parameters:
<T> the type of object to delete
type the type of object to delete
keys the keys to delete
    public <T extends OriannaObject<?>> void delete(Class<T> typeList<?> keys);

    

Parameters:
<T> the type of object to delete
type the type of object to delete
key the key to delete
    public <T extends OriannaObject<?>> void delete(Class<T> typeObject key);

    

Parameters:
<T> the type of object to get
type the type of object to get
keys the keys to get
Returns:
a list of retrieved objects (same length as keys list, with null entries if not found)
    public <T extends OriannaObject<?>> List<T> get(Class<T> typeList<?> keys);

    

Parameters:
<T> the type of object to get
type the type of object to get
key the key to get
Returns:
the retrieved object (null if not found)
    public <T extends OriannaObject<?>> T get(Class<T> typeObject key);

    

Parameters:
<T> the type of object to get
type the type of object to get
Returns:
if all objects have been stored, all objects. If not, null.
    public <T extends OriannaObject<?>> List<T> getAll(Class<T> type);

    

Parameters:
<T> the type of object to store
objs the objects to store
keys the keys to store them with
isFullSet whether these are all the objects of that type that can exist
    public <T extends OriannaObject<?>> void store(List<T> objsList<?> keysboolean isFullSet);

    

Parameters:
<T> the type of object to store
obj the object to store
key the key to store it with
    public <T extends OriannaObject<?>> void store(T objObject key);
New to GrepCode? Check out our FAQ X