E
- @StoreNotUseStandardSerialization @StorableClass public abstract class AbstractHashSupportNodeSet<E> extends HashSupportNodeEntry<E> implements ILinkedListSupportNodeManager<E>, Cloneable, Serializable
Modifier and Type | Field and Description |
---|---|
protected LinkedListSupportManager<E> |
listManager
list manager for the nodes of this set
|
protected ILinkedListSupportNode<E> |
root
the root node, null for empty list
not transient for persistence |
comparator, instanceFactory
Modifier | Constructor and Description |
---|---|
protected |
AbstractHashSupportNodeSet(IInstanceFactory instanceFactory,
int hashcode,
IEqualsHashComparator comparator) |
protected |
AbstractHashSupportNodeSet(int hascode,
IEqualsHashComparator comparator) |
Modifier and Type | Method and Description |
---|---|
PreviousElementAndSetNode<E> |
addReplace(E element)
add element at end of the list if equals element not already in the list,
else replace the equals element
|
void |
clear()
clear this set
|
boolean |
contains(Object object)
search for an object
|
void |
decrementSize() |
E |
get(Object object)
get an object
|
ILinkedListSupportNode<E> |
getFirstNode() |
ILinkedListSupportNode<E> |
getLastNode()
get last node of the list, null for empty list
package visibility, should be used only by LinkedListSupportIterator |
LinkedListSupportManager<E> |
getListManager() |
ILinkedListSupportNode<E> |
getRoot()
get the root node, null for empty list
should be used only by LinkedListSupportIterator and
ILinkedListSupportNodeManager implementation |
int |
getSize() |
void |
incrementSize() |
boolean |
isEmpty() |
ILinkedListSupportNode<E> |
remove(Object object)
remove an object
|
void |
resetSize() |
void |
setLastNode(ILinkedListSupportNode<E> lastNode) |
void |
setRoot(ILinkedListSupportNode<E> rootNode) |
compareTo, equals, hashCode, newInstance, newInstance, setHascode
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getEqualsHashComparator, newLinkedListNode
protected LinkedListSupportManager<E> listManager
protected ILinkedListSupportNode<E> root
protected AbstractHashSupportNodeSet(IInstanceFactory instanceFactory, int hashcode, IEqualsHashComparator comparator)
protected AbstractHashSupportNodeSet(int hascode, IEqualsHashComparator comparator)
public LinkedListSupportManager<E> getListManager()
public boolean contains(Object object)
object
- the object to searchpublic E get(Object object)
object
- the object to getpublic PreviousElementAndSetNode<E> addReplace(E element)
element
- the element to add or for replacementpublic ILinkedListSupportNode<E> remove(Object object)
object
- the object to removepublic boolean isEmpty()
public void clear()
public int getSize()
getSize
in interface ILinkedListSupportNodeManager<E>
public void incrementSize()
incrementSize
in interface ILinkedListSupportNodeManager<E>
public void decrementSize()
decrementSize
in interface ILinkedListSupportNodeManager<E>
public void resetSize()
resetSize
in interface ILinkedListSupportNodeManager<E>
public ILinkedListSupportNode<E> getLastNode()
ILinkedListSupportNodeManager
LinkedListSupportIterator
getLastNode
in interface ILinkedListSupportNodeManager<E>
public ILinkedListSupportNode<E> getFirstNode()
getFirstNode
in interface ILinkedListSupportNodeManager<E>
public ILinkedListSupportNode<E> getRoot()
ILinkedListSupportNodeManager
LinkedListSupportIterator
and
ILinkedListSupportNodeManager
implementationgetRoot
in interface ILinkedListSupportNodeManager<E>
public void setLastNode(ILinkedListSupportNode<E> lastNode)
setLastNode
in interface ILinkedListSupportNodeManager<E>
public void setRoot(ILinkedListSupportNode<E> rootNode)
setRoot
in interface ILinkedListSupportNodeManager<E>
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.