+ improve RedisSet contract

This commit is contained in:
Costin Leau
2010-11-09 10:50:21 +02:00
parent 962fdcfa08
commit 16ae948d92
2 changed files with 3 additions and 2 deletions

View File

@@ -46,6 +46,8 @@ public abstract class AbstractRedisCollection extends AbstractCollection<String>
public abstract boolean removeAll(Collection<?> c);
public abstract boolean remove(Object o);
public boolean retainAll(Collection<?> c) {
throw new UnsupportedOperationException();
}

View File

@@ -15,7 +15,6 @@
*/
package org.springframework.datastore.redis.util;
import java.util.Queue;
import java.util.Set;
/**
@@ -24,7 +23,7 @@ import java.util.Set;
*
* @author Costin Leau
*/
public interface RedisSet extends RedisCollection, Set<String>, Queue<String> {
public interface RedisSet extends RedisCollection, Set<String> {
Set<String> intersect(RedisSet... sets);