Class RegionalDeque<E extends Locatable>
java.lang.Object
com.github.darksoulq.abyssallib.server.util.regional.RegionalDeque<E>
- All Implemented Interfaces:
Iterable<E>, Collection<E>, Deque<E>, Queue<E>, SequencedCollection<E>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(@NotNull Collection<? extends E> c) voidvoidvoidclear()booleanbooleancontainsAll(@NotNull Collection<?> c) element()getFirst()getLast()booleanisEmpty()iterator()booleanbooleanofferFirst(E e) booleanpeek()peekLast()poll()pollLast()pop()voidremove()booleanbooleanremoveAll(@NotNull Collection<?> c) booleanremoveFirstOccurrence(@Nullable Object o) booleanremoveLastOccurrence(@Nullable Object o) booleanretainAll(@NotNull Collection<?> c) intsize()Object @NotNull []toArray()<T> T @NotNull []toArray(T @NotNull [] a) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
RegionalDeque
public RegionalDeque() -
RegionalDeque
public RegionalDeque(boolean forceConcurrent)
-
-
Method Details
-
size
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<E extends Locatable>
-
contains
-
addFirst
-
addLast
-
offerFirst
- Specified by:
offerFirstin interfaceDeque<E extends Locatable>
-
offerLast
-
removeFirst
- Specified by:
removeFirstin interfaceDeque<E extends Locatable>- Specified by:
removeFirstin interfaceSequencedCollection<E extends Locatable>
-
removeLast
- Specified by:
removeLastin interfaceDeque<E extends Locatable>- Specified by:
removeLastin interfaceSequencedCollection<E extends Locatable>
-
pollFirst
-
pollLast
-
getFirst
-
getLast
-
peekFirst
-
peekLast
-
removeFirstOccurrence
- Specified by:
removeFirstOccurrencein interfaceDeque<E extends Locatable>
-
removeLastOccurrence
- Specified by:
removeLastOccurrencein interfaceDeque<E extends Locatable>
-
add
-
offer
-
remove
-
poll
-
element
-
peek
-
push
-
pop
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<E extends Locatable>
-
addAll
-
removeAll
- Specified by:
removeAllin interfaceCollection<E extends Locatable>
-
retainAll
- Specified by:
retainAllin interfaceCollection<E extends Locatable>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<E extends Locatable>
-
iterator
-
descendingIterator
-
toArray
- Specified by:
toArrayin interfaceCollection<E extends Locatable>
-
toArray
public <T> T @NotNull [] toArray(T @NotNull [] a) - Specified by:
toArrayin interfaceCollection<E extends Locatable>
-
getRegion
-