Package de.gsi.chart.ui
Class ObservableDeque<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- javafx.collections.ObservableListBase<E>
-
- de.gsi.chart.ui.ObservableDeque<E>
-
- Type Parameters:
E- queue generic parameter
- All Implemented Interfaces:
java.lang.Iterable<E>,java.util.Collection<E>,java.util.Deque<E>,java.util.List<E>,java.util.Queue<E>,javafx.beans.Observable,javafx.collections.ObservableList<E>
public class ObservableDeque<E> extends javafx.collections.ObservableListBase<E> implements java.util.Deque<E>Implements ObservableDeque missing in default JavaFXNote that manipulations of the underlying deque will not result in notification to listeners.
- Author:
- rstein
-
-
Constructor Summary
Constructors Constructor Description ObservableDeque(java.util.Deque<E> deque)Creates an ObservableDeque backed by the supplied Deque.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(E e)voidaddFirst(E e)voidaddLast(E e)java.util.Iterator<E>descendingIterator()Eelement()Eget(int index)EgetFirst()EgetLast()booleanoffer(E e)booleanofferFirst(E e)booleanofferLast(E e)Epeek()EpeekFirst()EpeekLast()Epoll()EpollFirst()EpollLast()Epop()voidpush(E e)Eremove()EremoveFirst()booleanremoveFirstOccurrence(java.lang.Object o)EremoveLast()booleanremoveLastOccurrence(java.lang.Object o)intsize()-
Methods inherited from class javafx.collections.ObservableListBase
addAll, addListener, addListener, beginChange, endChange, fireChange, hasListeners, nextAdd, nextPermutation, nextRemove, nextRemove, nextReplace, nextSet, nextUpdate, remove, removeAll, removeListener, removeListener, retainAll, setAll, setAll
-
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
ObservableDeque
public ObservableDeque(java.util.Deque<E> deque)
Creates an ObservableDeque backed by the supplied Deque. Note that manipulations of the underlying deque will not result in notification to listeners.- Parameters:
deque- the specific backing implementation
-
-
Method Detail
-
offer
public boolean offer(E e)
-
add
public boolean add(E e)
-
remove
public E remove()
-
poll
public E poll()
-
element
public E element()
-
peek
public E peek()
-
get
public E get(int index)
-
size
public int size()
-
removeFirstOccurrence
public boolean removeFirstOccurrence(java.lang.Object o)
- Specified by:
removeFirstOccurrencein interfacejava.util.Deque<E>
-
removeLastOccurrence
public boolean removeLastOccurrence(java.lang.Object o)
- Specified by:
removeLastOccurrencein interfacejava.util.Deque<E>
-
-