java.lang.Object
org.bsc.async.internal.UnmodifiableDeque<T>
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,Deque<T>
,Queue<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends T> c) void
void
void
clear()
boolean
boolean
containsAll
(Collection<?> c) element()
getFirst()
getLast()
boolean
isEmpty()
iterator()
boolean
boolean
offerFirst
(T t) boolean
peek()
peekLast()
poll()
pollLast()
pop()
void
remove()
boolean
boolean
removeAll
(Collection<?> c) boolean
boolean
boolean
retainAll
(Collection<?> c) int
size()
Object[]
toArray()
<T1> T1[]
toArray
(T1[] a) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
UnmodifiableDeque
-
-
Method Details
-
add
-
offer
-
remove
-
poll
-
element
-
peek
-
addFirst
-
addLast
-
offerFirst
- Specified by:
offerFirst
in interfaceDeque<T>
-
offerLast
-
removeFirst
- Specified by:
removeFirst
in interfaceDeque<T>
-
removeLast
- Specified by:
removeLast
in interfaceDeque<T>
-
pollFirst
-
pollLast
-
getFirst
-
getLast
-
peekFirst
-
peekLast
-
removeFirstOccurrence
- Specified by:
removeFirstOccurrence
in interfaceDeque<T>
-
removeLastOccurrence
- Specified by:
removeLastOccurrence
in interfaceDeque<T>
-
addAll
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<T>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<T>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<T>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<T>
-
contains
-
size
public int size() -
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<T>
-
iterator
-
toArray
- Specified by:
toArray
in interfaceCollection<T>
-
toArray
public <T1> T1[] toArray(T1[] a) - Specified by:
toArray
in interfaceCollection<T>
-
descendingIterator
- Specified by:
descendingIterator
in interfaceDeque<T>
-
push
-
pop
-
remove
-