E
- @StoreNotUseStandardSerialization @StorableClass public class PHashSet<E> extends AbstractPSet<E> implements Set<E>, Cloneable, Serializable
HashSet
pour file persistenceModifier | Constructor and Description |
---|---|
|
PHashSet() |
|
PHashSet(boolean concurrentAccess) |
|
PHashSet(IEqualsHashComparator comparator) |
|
PHashSet(IEqualsHashComparator comparator,
boolean concurrentAccess) |
protected |
PHashSet(IInstanceFactory instanceFactory) |
protected |
PHashSet(IInstanceFactory instanceFactory,
boolean concurrentAccess) |
protected |
PHashSet(IInstanceFactory instanceFactory,
IEqualsHashComparator comparator) |
protected |
PHashSet(IInstanceFactory instanceFactory,
IEqualsHashComparator comparator,
boolean concurrentAccess) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E element)
return false if already contains same value objet
|
E |
addGetPrevious(E element) |
void |
addListerner(ICollectionListener<E> listener) |
void |
clear() |
protected PHashSet<E> |
clone() |
boolean |
contains(Object object) |
E |
get(Object object)
get the real instance of object equals to reference object
|
HashSupport<E> |
getHashSupport() |
int |
hashCode() |
Iterator<E> |
iterator() |
ListIterator<E> |
listIterator() |
static PHashSet |
newInstance(IInstanceFactory instanceFactory) |
static PHashSet |
newInstance(IInstanceFactory instanceFactory,
boolean concurrentAccess) |
static PHashSet |
newInstance(IInstanceFactory instanceFactory,
IEqualsHashComparator comparator) |
static PHashSet |
newInstance(IInstanceFactory instanceFactory,
IEqualsHashComparator comparator,
boolean concurrentAccess) |
void |
notifyAdded(E added) |
void |
notifyRemoved(E removed) |
boolean |
remove(Object object) |
E |
removeGetRemoved(Object object)
remove an element and return it
|
void |
removeListener(int listenerIdentifier) |
void |
setHashSupport(HashSupport<E> hashSupport) |
int |
size() |
equals, removeAll
addAll, containsAll, isEmpty, retainAll, toArray, toArray, toString
public PHashSet()
protected PHashSet(IInstanceFactory instanceFactory)
public PHashSet(IEqualsHashComparator comparator)
protected PHashSet(IInstanceFactory instanceFactory, IEqualsHashComparator comparator)
public PHashSet(boolean concurrentAccess)
protected PHashSet(IInstanceFactory instanceFactory, boolean concurrentAccess)
public PHashSet(IEqualsHashComparator comparator, boolean concurrentAccess)
protected PHashSet(IInstanceFactory instanceFactory, IEqualsHashComparator comparator, boolean concurrentAccess)
public static PHashSet newInstance(IInstanceFactory instanceFactory)
public static PHashSet newInstance(IInstanceFactory instanceFactory, IEqualsHashComparator comparator)
public static PHashSet newInstance(IInstanceFactory instanceFactory, boolean concurrentAccess)
public static PHashSet newInstance(IInstanceFactory instanceFactory, IEqualsHashComparator comparator, boolean concurrentAccess)
public void addListerner(ICollectionListener<E> listener)
addListerner
in interface ICollectionListenable<E>
public void removeListener(int listenerIdentifier)
removeListener
in interface ICollectionListenable<E>
public void notifyAdded(E added)
notifyAdded
in interface ISupportListener<E>
public void notifyRemoved(E removed)
notifyRemoved
in interface ISupportListener<E>
public ListIterator<E> listIterator()
public int size()
public boolean contains(Object object)
contains
in interface Collection<E>
contains
in interface Set<E>
contains
in class PAbstractCollection<E>
public E get(Object object)
IPSet
public boolean add(E element)
public boolean remove(Object object)
remove
in interface Collection<E>
remove
in interface Set<E>
remove
in class PAbstractCollection<E>
public E removeGetRemoved(Object object)
object
- the reference for searchpublic void clear()
clear
in interface Collection<E>
clear
in interface Set<E>
clear
in class PAbstractCollection<E>
public void setHashSupport(HashSupport<E> hashSupport)
public HashSupport<E> getHashSupport()
public int hashCode()
hashCode
in interface Collection<E>
hashCode
in interface Set<E>
hashCode
in class PAbstractSet<E>
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.