E
- the set element type@StoreNotUseStandardSerialization @StorableClass public class HashSupport<E> extends Object implements ISupportListenable<E>, Iterable<E>, Cloneable, Serializable
Object.equals(Object)
and
Object.hashCode()
for access to elementModifier | Constructor and Description |
---|---|
|
HashSupport(IEqualsHashComparator comparator,
boolean concurrentAccess) |
protected |
HashSupport(IInstanceFactory instanceFactory,
IEqualsHashComparator comparator,
boolean concurrentAccess) |
Modifier and Type | Method and Description |
---|---|
E |
add(E element) |
void |
clear()
clear the set
|
HashSupport<E> |
clone() |
boolean |
contains(Object object)
to check if the set contains an element equals to a reference object
equality check is done using Object.equals element implementation |
void |
decrementSize() |
boolean |
equals(Object object) |
E |
get(Object object)
get object in the set equals to an object
equality check is done using Object.equals element implementation |
int |
getSize() |
TreeSupport<HashSupportNodeEntry<E>> |
getTree() |
int |
hashCode() |
boolean |
isEmpty() |
ListIterator<E> |
iterator() |
ListIterator<E> |
listIterator() |
static HashSupport |
newInstance(IInstanceFactory instanceFactory,
IEqualsHashComparator comparator,
boolean concurrentAccess) |
ILinkedListSupportNode<E> |
newLinkedListNode() |
E |
remove(Object object)
remove element from the set
equality check is done using Object.equals element implementation |
void |
removeListener() |
void |
setListener(ISupportListener<E> listener) |
void |
setSize(int newSize) |
void |
setTree(TreeSupport<HashSupportNodeEntry<E>> tree) |
public HashSupport(IEqualsHashComparator comparator, boolean concurrentAccess)
protected HashSupport(IInstanceFactory instanceFactory, IEqualsHashComparator comparator, boolean concurrentAccess)
public static HashSupport newInstance(IInstanceFactory instanceFactory, IEqualsHashComparator comparator, boolean concurrentAccess)
public void setListener(ISupportListener<E> listener)
setListener
in interface ISupportListenable<E>
public void removeListener()
removeListener
in interface ISupportListenable<E>
public void setTree(TreeSupport<HashSupportNodeEntry<E>> tree)
public TreeSupport<HashSupportNodeEntry<E>> getTree()
public E get(Object object)
Object.equals
element implementationobject
- reference objectpublic boolean contains(Object object)
Object.equals
element implementationobject
- the reference objectpublic E remove(Object object)
Object.equals
element implementationobject
- the element reference to removepublic void clear()
public boolean isEmpty()
public void setSize(int newSize)
public ILinkedListSupportNode<E> newLinkedListNode()
public int getSize()
public ListIterator<E> iterator()
public ListIterator<E> listIterator()
public void decrementSize()
public HashSupport<E> clone()
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.