From 785d5c03612e9f5d06132dd1ea9bf9ae485741fc Mon Sep 17 00:00:00 2001 From: Nikita Date: Thu, 3 Dec 2015 11:29:08 +0300 Subject: [PATCH] RandomAccess interface added --- src/main/java/org/redisson/core/RList.java | 3 ++- src/main/java/org/redisson/core/RListAsync.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/redisson/core/RList.java b/src/main/java/org/redisson/core/RList.java index 702f98dca..74ef57085 100644 --- a/src/main/java/org/redisson/core/RList.java +++ b/src/main/java/org/redisson/core/RList.java @@ -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} @@ -24,7 +25,7 @@ import java.util.List; * * @param the type of elements held in this collection */ -public interface RList extends List, RExpirable, RListAsync { +public interface RList extends List, RExpirable, RListAsync, RandomAccess { void fastSet(int index, V element); diff --git a/src/main/java/org/redisson/core/RListAsync.java b/src/main/java/org/redisson/core/RListAsync.java index f9d7da761..6ce2109a2 100644 --- a/src/main/java/org/redisson/core/RListAsync.java +++ b/src/main/java/org/redisson/core/RListAsync.java @@ -16,6 +16,7 @@ package org.redisson.core; import java.util.Collection; +import java.util.RandomAccess; import io.netty.util.concurrent.Future; @@ -26,7 +27,7 @@ import io.netty.util.concurrent.Future; * * @param the type of elements held in this collection */ -public interface RListAsync extends RCollectionAsync { +public interface RListAsync extends RCollectionAsync, RandomAccess { Future addAllAsync(int index, Collection coll);