Skip to content

Commit

Permalink
RandomAccess interface added
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita committed Dec 3, 2015
1 parent 7bcd476 commit 785d5c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/java/org/redisson/core/RList.java
Expand Up @@ -16,6 +16,7 @@
package org.redisson.core;

import java.util.List;
import java.util.RandomAccess;

/**
* Distributed and concurrent implementation of {@link java.util.List}
Expand All @@ -24,7 +25,7 @@
*
* @param <V> the type of elements held in this collection
*/
public interface RList<V> extends List<V>, RExpirable, RListAsync<V> {
public interface RList<V> extends List<V>, RExpirable, RListAsync<V>, RandomAccess {

void fastSet(int index, V element);

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/redisson/core/RListAsync.java
Expand Up @@ -16,6 +16,7 @@
package org.redisson.core;

import java.util.Collection;
import java.util.RandomAccess;

import io.netty.util.concurrent.Future;

Expand All @@ -26,7 +27,7 @@
*
* @param <V> the type of elements held in this collection
*/
public interface RListAsync<V> extends RCollectionAsync<V> {
public interface RListAsync<V> extends RCollectionAsync<V>, RandomAccess {

Future<Boolean> addAllAsync(int index, Collection<? extends V> coll);

Expand Down

0 comments on commit 785d5c0

Please sign in to comment.