@Test public void cacheIsClearedInReplaceAll() { List<TestObject> list = createTestObjectList(); reactiveStore.replaceAll(list); Mockito.verify(cache).clear(); }
public void replaceAll(@NonNull final List<Value> modelList) { cache.clear(); storeAll(modelList); }
MemoryReactiveStore implements ReactiveStore<Key, Value> { public void replaceAll(@NonNull final List<Value> modelList) { cache.clear(); storeAll(modelList); } }
MemoryReactiveStore implements ReactiveStore<Key, Value> { public void replaceAll(@NonNull final List<Value> modelList) { cache.clear(); storeAll(modelList); } MemoryReactiveStore(@NonNull final Func1<Value, Key> extractKeyFromModel,
                               @NonNull final Store.MemoryStore<Key, Value> cache); }
MemoryReactiveStore implements ReactiveStore<Key, Value> { public void replaceAll(@NonNull final List<Value> modelList) { cache.clear(); storeAll(modelList); } MemoryReactiveStore(@NonNull final Func1<Value, Key> extractKeyFromModel,
                               @NonNull final Store.MemoryStore<Key, Value> cache); void storeSingular(@NonNull final Value model); void storeAll(@NonNull final List<Value> modelList); void replaceAll(@NonNull final List<Value> modelList); @NonNull Observable<Option<Value>> getSingular(@NonNull final Key key); @NonNull Observable<Option<List<Value>>> getAll(); }
MemoryReactiveStore implements ReactiveStore<Key, Value> { public void replaceAll(@NonNull final List<Value> modelList) { cache.clear(); storeAll(modelList); } MemoryReactiveStore(@NonNull final Func1<Value, Key> extractKeyFromModel,
                               @NonNull final Store.MemoryStore<Key, Value> cache); void storeSingular(@NonNull final Value model); void storeAll(@NonNull final List<Value> modelList); void replaceAll(@NonNull final List<Value> modelList); @NonNull Observable<Option<Value>> getSingular(@NonNull final Key key); @NonNull Observable<Option<List<Value>>> getAll();  }