Class NodeChangeQueue<N>
java.lang.Object
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<NodeChange<N>>,Collection<NodeChange<N>>,Deque<NodeChange<N>>,List<NodeChange<N>>,Queue<NodeChange<N>>,SequencedCollection<NodeChange<N>>,NodeChangeListener<N>
A queuing implementation of the
NodeChangeListener interface.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.exoplatform.portal.mop.navigation.NodeChangeListener
NodeChangeListener.Base<N> -
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbroadcast(NodeChangeListener<N> listener) voidA node was added.voidA node was created.voidA node was destroyed.voidA node was moved.voidA node was removed.voidA node was renamed.voidA node was updated.Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, reversed, set, size, spliterator, toArray, toArrayMethods inherited from class java.util.AbstractSequentialList
iteratorMethods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subList
-
Constructor Details
-
NodeChangeQueue
public NodeChangeQueue() -
NodeChangeQueue
-
-
Method Details
-
onAdd
Description copied from interface:NodeChangeListenerA node was added.- Specified by:
onAddin interfaceNodeChangeListener<N>- Parameters:
target- the added nodeparent- the parent nodeprevious- the optional previous node
-
onCreate
Description copied from interface:NodeChangeListenerA node was created.- Specified by:
onCreatein interfaceNodeChangeListener<N>- Parameters:
target- the created nodeparent- the parent nodeprevious- the optional previous nodename- the name of the created node
-
onRemove
Description copied from interface:NodeChangeListenerA node was removed.- Specified by:
onRemovein interfaceNodeChangeListener<N>- Parameters:
target- the removed nodeparent- the parent node
-
onDestroy
Description copied from interface:NodeChangeListenerA node was destroyed.- Specified by:
onDestroyin interfaceNodeChangeListener<N>- Parameters:
target- the destroyed nodeparent- the parent node
-
onRename
Description copied from interface:NodeChangeListenerA node was renamed.- Specified by:
onRenamein interfaceNodeChangeListener<N>- Parameters:
target- the renamed nodeparent- the parent nodename- the new node name
-
onMove
Description copied from interface:NodeChangeListenerA node was moved.- Specified by:
onMovein interfaceNodeChangeListener<N>- Parameters:
target- the moved node.from- the previous parentto- the new parentprevious- the optional previous node