Skip to content

Commit

Permalink
uh?
Browse files Browse the repository at this point in the history
  • Loading branch information
volgar1x committed Jul 11, 2013
1 parent 60bc81f commit cbea6df
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions atomium-core/src/main/java/org/atomium/caches/CQCache.java
Expand Up @@ -68,4 +68,9 @@ public T unique(Ref<T> ref) {
public Set<T> where(Query<T> query) {
return ImmutableSet.copyOf(list.retrieve(query));
}

@Override
public Set<T> all() {
return ImmutableSet.copyOf(list);
}
}
Expand Up @@ -22,4 +22,6 @@ public interface CacheInterface<T> {
T unique(Ref<T> ref);

Set<T> where(Query<T> query);

Set<T> all();
}
5 changes: 5 additions & 0 deletions atomium-core/src/main/java/org/atomium/caches/NoCache.java
Expand Up @@ -53,4 +53,9 @@ public T unique(Ref<T> ref) {
public Set<T> where(Query<T> query) {
return ImmutableSet.of();
}

@Override
public Set<T> all() {
return ImmutableSet.of();
}
}

0 comments on commit cbea6df

Please sign in to comment.