@StoreNotUseStandardSerialization @StorableClass public class LinkedListSupportManager<E> extends Object implements ISupportListenable<E>, Serializable
Constructor and Description |
---|
LinkedListSupportManager(ILinkedListSupportNodeManager<E> nodeListManager) |
public LinkedListSupportManager(ILinkedListSupportNodeManager<E> nodeListManager)
public static LinkedListSupportManager newInstance(IInstanceFactory instanceFactory, ILinkedListSupportNodeManager nodeListManager)
public int getModificationCount()
public void setListener(ISupportListener<E> listener)
setListener
in interface ISupportListenable<E>
public void removeListener()
removeListener
in interface ISupportListenable<E>
public void fireAdded(E added)
public void fireRemoved(E removed)
public ILinkedListSupportNode<E> addAtEnd(E element)
element
- the element to addpublic void addAtEnd(ILinkedListSupportNode<E> toAdd)
public void addAtBegin(E element)
public void addAtBegin(ILinkedListSupportNode<E> toAdd)
public void add(int index, E element)
@Deprecated public void insertAfter(int index, E element)
@Deprecated public void insertBefore(int index, E element)
public void addBefore(ILinkedListSupportNode<E> reference, ILinkedListSupportNode<E> toAdd)
public void addAfter(ILinkedListSupportNode<E> reference, ILinkedListSupportNode<E> toAdd)
public PreviousElementAndSetNode<E> addReplace(E element)
element
- the element to add or for replacementpublic ILinkedListSupportNode<E> remove(Object object)
object
- the object to removepublic E remove(int index)
public E removeFirst()
public E removeLast()
public void remove(ILinkedListSupportNode<E> toRemove)
public void removeNoNotification(ILinkedListSupportNode<E> toRemove)
public boolean moveDown(ILinkedListSupportNode<E> toMove)
toMove
- public boolean moveUp(ILinkedListSupportNode<E> toMove)
toMove
- public E getFirst()
public E getLast()
public E get(Object object)
object
- the object to getpublic ILinkedListSupportNode<E> get(int index)
public ILinkedListSupportNode<E> contains(Object object)
object
- the object to searchpublic int indexOf(Object object)
public int lastIndexOf(Object object)
public void clear()
public ILinkedListSupportNode<E> getRoot()
public ILinkedListSupportNode<E> getLastNode()
public ILinkedListSupportNode<E> getFirstNode()
public int getSize()
public ILinkedListSupportNode<E> newLinkedListNode()
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.