Package com.db4o.collections
Class ActivatableHashSet<E>
- java.lang.Object
- 
- java.util.AbstractCollection<E>
- 
- java.util.AbstractSet<E>
- 
- java.util.HashSet<E>
- 
- com.db4o.collections.ActivatableHashSet<E>
 
 
 
 
- 
- All Implemented Interfaces:
- ActivatableCollection<E>,- ActivatableSet<E>,- Activatable,- java.io.Serializable,- java.lang.Cloneable,- java.lang.Iterable<E>,- java.util.Collection<E>,- java.util.Set<E>
 
 public class ActivatableHashSet<E> extends java.util.HashSet<E> implements ActivatableSet<E> extends ArrayList with Transparent Activation and Transparent Persistence support- Since:
- 7.9
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description ActivatableHashSet()ActivatableHashSet(int initialCapacity)ActivatableHashSet(int initialCapacity, float loadFactor)ActivatableHashSet(java.util.Collection<? extends E> coll)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate(ActivationPurpose purpose)Should be called by every reading field access of an object.booleanadd(E o)booleanaddAll(java.util.Collection<? extends E> c)voidbind(Activator activator)Called by db4o after the object instantiation.voidclear()java.lang.Objectclone()booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection<?> c)booleanequals(java.lang.Object o)inthashCode()booleanisEmpty()java.util.Iterator<E>iterator()booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> c)booleanretainAll(java.util.Collection<?> c)intsize()java.lang.Object[]toArray()<T> T[]toArray(T[] a)
 
- 
- 
- 
Constructor Detail- 
ActivatableHashSetpublic ActivatableHashSet() 
 - 
ActivatableHashSetpublic ActivatableHashSet(int initialCapacity) 
 - 
ActivatableHashSetpublic ActivatableHashSet(int initialCapacity, float loadFactor)
 - 
ActivatableHashSetpublic ActivatableHashSet(java.util.Collection<? extends E> coll) 
 
- 
 - 
Method Detail- 
activatepublic void activate(ActivationPurpose purpose) Description copied from interface:ActivatableShould be called by every reading field access of an object.
 
 The recommended implementation of this method is to callActivator.activate(ActivationPurpose)on theActivatorthat was previously passed toActivatable.bind(Activator).- Specified by:
- activatein interface- Activatable
- Parameters:
- purpose- Whereever this object is accessed to read or write. See- ActivationPurpose
 
 - 
bindpublic void bind(Activator activator) Description copied from interface:ActivatableCalled by db4o after the object instantiation. This method is called to bind the object to the current activator
 
 The recommended implementation of this method is to store the passedActivatorin a transient field of the object.- Specified by:
- bindin interface- Activatable
- Parameters:
- activator- the Activator instance to bind
 
 - 
addpublic boolean add(E o) 
 - 
addAllpublic boolean addAll(java.util.Collection<? extends E> c) 
 - 
clearpublic void clear() 
 - 
containspublic boolean contains(java.lang.Object o) 
 - 
containsAllpublic boolean containsAll(java.util.Collection<?> c) 
 - 
equalspublic boolean equals(java.lang.Object o) 
 - 
hashCodepublic int hashCode() 
 - 
isEmptypublic boolean isEmpty() 
 - 
iteratorpublic java.util.Iterator<E> iterator() 
 - 
removepublic boolean remove(java.lang.Object o) 
 - 
removeAllpublic boolean removeAll(java.util.Collection<?> c) 
 - 
retainAllpublic boolean retainAll(java.util.Collection<?> c) 
 - 
sizepublic int size() 
 - 
toArraypublic java.lang.Object[] toArray() 
 - 
toArraypublic <T> T[] toArray(T[] a) 
 - 
clonepublic java.lang.Object clone() - Overrides:
- clonein class- java.util.HashSet<E>
 
 
- 
 
-