Package io.deephaven.util.datastructures
Class RandomAccessDeque<T>
java.lang.Object
io.deephaven.util.datastructures.RandomAccessDeque<T>
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
A deque, which also supports get() to an arbitrary index.
-
Constructor Summary
ConstructorDescriptionRandomAccessDeque
(int expansion) RandomAccessDeque
(Collection<T> initialValues) RandomAccessDeque
(Collection<T> initialValues, int expansion) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(@NotNull Collection<? extends T> c) void
void
void
clear()
boolean
boolean
containsAll
(@NotNull Collection<?> c) get
(int index) boolean
isEmpty()
iterator()
boolean
boolean
removeAll
(@NotNull Collection<?> c) boolean
boolean
retainAll
(@NotNull Collection<?> c) int
size()
stream()
@NotNull Object[]
toArray()
<T1> @NotNull T1[]
toArray
(@NotNull T1[] a) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
equals, hashCode, spliterator, toArray
-
Constructor Details
-
RandomAccessDeque
public RandomAccessDeque() -
RandomAccessDeque
public RandomAccessDeque(int expansion) -
RandomAccessDeque
-
RandomAccessDeque
-
-
Method Details
-
size
public int size()- Specified by:
size
in interfaceCollection<T>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<T>
-
contains
- Specified by:
contains
in interfaceCollection<T>
-
iterator
-
toArray
- Specified by:
toArray
in interfaceCollection<T>
-
toArray
@NotNull public <T1> @NotNull T1[] toArray(@NotNull @NotNull T1[] a) - Specified by:
toArray
in interfaceCollection<T>
-
add
- Specified by:
add
in interfaceCollection<T>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<T>
-
addAll
- Specified by:
addAll
in interfaceCollection<T>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<T>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<T>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<T>
-
addFirst
-
addLast
-
removeIf
- Specified by:
removeIf
in interfaceCollection<T>
-
remove
- Specified by:
remove
in interfaceCollection<T>
-
get
-
stream
- Specified by:
stream
in interfaceCollection<T>
-
parallelStream
- Specified by:
parallelStream
in interfaceCollection<T>
-