@NotThreadSafe public class UnmodifiableDeque<T> extends Object implements Deque<T>
Deque implementation that cannot be modified.
This class is not thread-safe: if thread-safety is required external synchronization is necessary.
| Constructor and Description |
|---|
UnmodifiableDeque(Deque<T> inCollection)
Create a new UnmodifiableDeque instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T inE) |
boolean |
addAll(Collection<? extends T> inC) |
void |
addFirst(T inE) |
void |
addLast(T inE) |
void |
clear() |
boolean |
contains(Object inO) |
boolean |
containsAll(Collection<?> inC) |
Iterator<T> |
descendingIterator() |
T |
element() |
boolean |
equals(Object obj) |
T |
getFirst() |
T |
getLast() |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
boolean |
offer(T inE) |
boolean |
offerFirst(T inE) |
boolean |
offerLast(T inE) |
T |
peek() |
T |
peekFirst() |
T |
peekLast() |
T |
poll() |
T |
pollFirst() |
T |
pollLast() |
T |
pop() |
void |
push(T inE) |
T |
remove() |
boolean |
remove(Object inO) |
boolean |
removeAll(Collection<?> inC) |
T |
removeFirst() |
boolean |
removeFirstOccurrence(Object inO) |
T |
removeLast() |
boolean |
removeLastOccurrence(Object inO) |
boolean |
retainAll(Collection<?> inC) |
int |
size() |
Object[] |
toArray() |
<C> C[] |
toArray(C[] inA) |
String |
toString() |
public boolean addAll(Collection<? extends T> inC)
addAll in interface Collection<T>public void clear()
clear in interface Collection<T>public boolean containsAll(Collection<?> inC)
containsAll in interface Collection<T>public boolean isEmpty()
isEmpty in interface Collection<T>public boolean removeAll(Collection<?> inC)
removeAll in interface Collection<T>public boolean retainAll(Collection<?> inC)
retainAll in interface Collection<T>public Object[] toArray()
toArray in interface Collection<T>public <C> C[] toArray(C[] inA)
toArray in interface Collection<T>public boolean add(T inE)
public boolean contains(Object inO)
public Iterator<T> descendingIterator()
descendingIterator in interface Deque<T>public T element()
public boolean offer(T inE)
public boolean offerFirst(T inE)
offerFirst in interface Deque<T>public T peek()
public T poll()
public T remove()
public boolean remove(Object inO)
public T removeFirst()
removeFirst in interface Deque<T>public boolean removeFirstOccurrence(Object inO)
removeFirstOccurrence in interface Deque<T>public T removeLast()
removeLast in interface Deque<T>public boolean removeLastOccurrence(Object inO)
removeLastOccurrence in interface Deque<T>public int size()
public int hashCode()
hashCode in interface Collection<T>hashCode in class Objectpublic boolean equals(Object obj)
equals in interface Collection<T>equals in class ObjectCopyright © 2015. All Rights Reserved.