Package com.db4o.collections
Class ActivatableTreeSet<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.TreeSet<E>
-
- com.db4o.collections.ActivatableTreeSet<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.NavigableSet<E>,java.util.Set<E>,java.util.SortedSet<E>
public class ActivatableTreeSet<E> extends java.util.TreeSet<E> implements ActivatableSet<E>
extends ArrayList with Transparent Activation and Transparent Persistence support- Since:
- 7.9
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ActivatableTreeSet()ActivatableTreeSet(java.util.Collection<? extends E> c)ActivatableTreeSet(java.util.Comparator<? super E> comparator)ActivatableTreeSet(java.util.SortedSet<E> s)
-
Method Summary
All 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 e)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)Efirst()java.util.SortedSet<E>headSet(E toElement)booleanisEmpty()java.util.Iterator<E>iterator()Elast()booleanremove(java.lang.Object o)intsize()java.util.SortedSet<E>subSet(E fromElement, E toElement)java.util.SortedSet<E>tailSet(E fromElement)-
Methods inherited from class java.util.TreeSet
ceiling, comparator, descendingIterator, descendingSet, floor, headSet, higher, lower, pollFirst, pollLast, spliterator, subSet, tailSet
-
Methods inherited from class java.util.AbstractCollection
containsAll, retainAll, toArray, toArray, toString
-
-
-
-
Constructor Detail
-
ActivatableTreeSet
public ActivatableTreeSet()
-
ActivatableTreeSet
public ActivatableTreeSet(java.util.Comparator<? super E> comparator)
-
ActivatableTreeSet
public ActivatableTreeSet(java.util.Collection<? extends E> c)
-
ActivatableTreeSet
public ActivatableTreeSet(java.util.SortedSet<E> s)
-
-
Method Detail
-
activate
public 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 interfaceActivatable- Parameters:
purpose- Whereever this object is accessed to read or write. SeeActivationPurpose
-
bind
public 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 interfaceActivatable- Parameters:
activator- the Activator instance to bind
-
add
public boolean add(E e)
-
addAll
public boolean addAll(java.util.Collection<? extends E> c)
-
clear
public void clear()
-
clone
public java.lang.Object clone()
- Overrides:
clonein classjava.util.TreeSet<E>
-
contains
public boolean contains(java.lang.Object o)
-
first
public E first()
-
isEmpty
public boolean isEmpty()
-
iterator
public java.util.Iterator<E> iterator()
-
last
public E last()
-
remove
public boolean remove(java.lang.Object o)
-
size
public int size()
-
-