RandomAccess interface added

pull/337/head
Nikita 9 years ago
parent 7bcd476d65
commit 785d5c0361

@ -16,6 +16,7 @@
package org.redisson.core; package org.redisson.core;
import java.util.List; import java.util.List;
import java.util.RandomAccess;
/** /**
* Distributed and concurrent implementation of {@link java.util.List} * Distributed and concurrent implementation of {@link java.util.List}
@ -24,7 +25,7 @@ import java.util.List;
* *
* @param <V> the type of elements held in this collection * @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); void fastSet(int index, V element);

@ -16,6 +16,7 @@
package org.redisson.core; package org.redisson.core;
import java.util.Collection; import java.util.Collection;
import java.util.RandomAccess;
import io.netty.util.concurrent.Future; import io.netty.util.concurrent.Future;
@ -26,7 +27,7 @@ import io.netty.util.concurrent.Future;
* *
* @param <V> the type of elements held in this collection * @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); Future<Boolean> addAllAsync(int index, Collection<? extends V> coll);

Loading…
Cancel
Save