Package org.opendaylight.yangtools.util
Class EmptyDeque<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
org.opendaylight.yangtools.util.EmptyDeque<E>
- Type Parameters:
E
- the type of elements held in this collection
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,Deque<E>
,Queue<E>
,SequencedCollection<E>
,Immutable
A specialized always-empty implementation of
Deque
. This implementation will always refuse new
elements in its offer(Object)
method.-
Method Summary
Methods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, remove, removeAll, retainAll, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, stream, toArray
-
Method Details
-
instance
-
offer
-
offerFirst
- Specified by:
offerFirst
in interfaceDeque<E>
-
offerLast
-
poll
-
pollFirst
-
pollLast
-
peek
-
peekFirst
-
peekLast
-
iterator
-
spliterator
- Specified by:
spliterator
in interfaceCollection<E>
- Specified by:
spliterator
in interfaceIterable<E>
-
size
public int size()- Specified by:
size
in interfaceCollection<E>
- Specified by:
size
in interfaceDeque<E>
- Specified by:
size
in classAbstractCollection<E>
-
toArray
- Specified by:
toArray
in interfaceCollection<E>
- Overrides:
toArray
in classAbstractCollection<E>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArray
in interfaceCollection<E>
- Overrides:
toArray
in classAbstractCollection<E>
-
addFirst
-
addLast
-
removeFirst
- Specified by:
removeFirst
in interfaceDeque<E>
- Specified by:
removeFirst
in interfaceSequencedCollection<E>
-
removeLast
- Specified by:
removeLast
in interfaceDeque<E>
- Specified by:
removeLast
in interfaceSequencedCollection<E>
-
getFirst
-
getLast
-
removeFirstOccurrence
- Specified by:
removeFirstOccurrence
in interfaceDeque<E>
-
removeLastOccurrence
- Specified by:
removeLastOccurrence
in interfaceDeque<E>
-
push
-
pop
-
descendingIterator
- Specified by:
descendingIterator
in interfaceDeque<E>
-