Skip to content

Commit

Permalink
Added class-level javadocs and changed some RedisMap delegations to s…
Browse files Browse the repository at this point in the history
…crollElements() instead of directly on the backingMap.
  • Loading branch information
gsharma committed Oct 10, 2010
1 parent 08754ae commit 1618efd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/main/java/redis/clients/johm/Nest.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
import redis.clients.jedis.TransactionBlock;

/**
*
* Nest serves as a remote proxy for Jedis-to-Redis bridge. Its name signifies
* nested namespaced key generation for Redis by using chainable namespaces.
*/
public class Nest {
private static final String COLON = ":";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
import java.util.concurrent.TimeUnit;

/**
*
* This class provides the common contract for asynchronous operations on
* internal storage management of all JOhm collections.
*/
abstract class RedisBaseCollection {
// The choice of single-threaded executor is driven by current use of
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/redis/clients/johm/collections/RedisMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@ public void clear() {

@Override
public boolean containsKey(Object key) {
return backingMap.containsKey(key);
return scrollElements().containsKey(key);
}

@Override
public boolean containsValue(Object value) {
return backingMap.containsValue(value);
return scrollElements().containsValue(value);
}

@Override
public Set<java.util.Map.Entry<K, V>> entrySet() {
return backingMap.entrySet();
return scrollElements().entrySet();
}

@Override
Expand Down Expand Up @@ -119,7 +119,7 @@ public int size() {

@Override
public Collection<V> values() {
return backingMap.values();
return scrollElements().values();
}

private V internalPut(final K key, final V value, boolean refreshStorage) {
Expand Down

0 comments on commit 1618efd

Please sign in to comment.