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- underlyingDequeto use.- Returns:
- unmodifiable view of
deque
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection<E>
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceCollection<E>
-
offerFirst
public boolean offerFirst(E e)
- Specified by:
offerFirstin interfaceDeque<E>
-
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArrayin interfaceCollection<E>
-
removeFirst
public E removeFirst()
- Specified by:
removeFirstin interfaceDeque<E>
-
removeLast
public E removeLast()
- Specified by:
removeLastin interfaceDeque<E>
-
removeFirstOccurrence
public boolean removeFirstOccurrence(Object o)
- Specified by:
removeFirstOccurrencein interfaceDeque<E>
-
removeLastOccurrence
public boolean removeLastOccurrence(Object o)
- Specified by:
removeLastOccurrencein interfaceDeque<E>
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAllin 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:
removeAllin interfaceCollection<E>
-
remove
public E remove()
-
poll
public E poll()
-
element
public E element()
-
removeIf
public boolean removeIf(Predicate<? super E> filter)
- Specified by:
removeIfin interfaceCollection<E>
-
peek
public E peek()
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAllin interfaceCollection<E>
-
remove
public boolean remove(Object o)
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<E>
-
equals
public boolean equals(Object o)
- Specified by:
equalsin interfaceCollection<E>- Overrides:
equalsin classObject
-
contains
public boolean contains(Object o)
-
size
public int size()
-
descendingIterator
public Iterator<E> descendingIterator()
- Specified by:
descendingIteratorin interfaceDeque<E>
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceCollection<E>- Overrides:
hashCodein classObject
-
spliterator
public Spliterator<E> spliterator()
- Specified by:
spliteratorin interfaceCollection<E>- Specified by:
spliteratorin interfaceIterable<E>
-
stream
public Stream<E> stream()
- Specified by:
streamin interfaceCollection<E>
-
parallelStream
public Stream<E> parallelStream()
- Specified by:
parallelStreamin interfaceCollection<E>
-
-