Package org.onlab.util
Class UnmodifiableDeque<E>
- java.lang.Object
-
- org.onlab.util.UnmodifiableDeque<E>
-
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
toArray
-
-
-
-
Method Detail
-
unmodifiableDeque
public static <T> Deque<T> unmodifiableDeque(Deque<T> deque)
Returns an unmodifiable view of the specified Deque.- Type Parameters:
T
- type- Parameters:
deque
- underlyingDeque
to use.- Returns:
- unmodifiable view of
deque
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceCollection<E>
-
toArray
public Object[] toArray()
- Specified by:
toArray
in interfaceCollection<E>
-
offerFirst
public boolean offerFirst(E e)
- Specified by:
offerFirst
in interfaceDeque<E>
-
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray
in interfaceCollection<E>
-
removeFirst
public E removeFirst()
- Specified by:
removeFirst
in interfaceDeque<E>
-
removeLast
public E removeLast()
- Specified by:
removeLast
in interfaceDeque<E>
-
removeFirstOccurrence
public boolean removeFirstOccurrence(Object o)
- Specified by:
removeFirstOccurrence
in interfaceDeque<E>
-
removeLastOccurrence
public boolean removeLastOccurrence(Object o)
- Specified by:
removeLastOccurrence
in interfaceDeque<E>
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll
in interfaceCollection<E>
-
add
public boolean add(E e)
-
addAll
public boolean addAll(Collection<? extends E> c)
-
offer
public boolean offer(E e)
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll
in interfaceCollection<E>
-
remove
public E remove()
-
poll
public E poll()
-
element
public E element()
-
removeIf
public boolean removeIf(Predicate<? super E> filter)
- Specified by:
removeIf
in interfaceCollection<E>
-
peek
public E peek()
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll
in interfaceCollection<E>
-
remove
public boolean remove(Object o)
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection<E>
-
equals
public boolean equals(Object o)
- Specified by:
equals
in interfaceCollection<E>
- Overrides:
equals
in classObject
-
contains
public boolean contains(Object o)
-
size
public int size()
-
descendingIterator
public Iterator<E> descendingIterator()
- Specified by:
descendingIterator
in interfaceDeque<E>
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceCollection<E>
- Overrides:
hashCode
in classObject
-
spliterator
public Spliterator<E> spliterator()
- Specified by:
spliterator
in interfaceCollection<E>
- Specified by:
spliterator
in interfaceIterable<E>
-
stream
public Stream<E> stream()
- Specified by:
stream
in interfaceCollection<E>
-
parallelStream
public Stream<E> parallelStream()
- Specified by:
parallelStream
in interfaceCollection<E>
-
-