public class DefaultAllocationStore extends java.lang.Object implements AscendAllocationStore
| Modifier and Type | Method and Description |
|---|---|
com.google.gson.JsonArray |
get(java.lang.String uid)
Retrieves a JsonArray.
|
void |
put(java.lang.String uid,
com.google.gson.JsonArray allocations)
Stores a JsonArray.
|
public com.google.gson.JsonArray get(java.lang.String uid)
AscendAllocationStoreRetrieves a JsonArray that represents the participant's allocations. If there are no stored allocations, should return an empty JsonArray.
get in interface AscendAllocationStoreuid - the participant's unique idpublic void put(java.lang.String uid,
com.google.gson.JsonArray allocations)
AscendAllocationStoreStores the given JsonArray.
put in interface AscendAllocationStoreuid - the participant's unique idallocations - the participant's allocations