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 void
activate(ActivationPurpose purpose)
Should be called by every reading field access of an object.boolean
add(E e)
boolean
addAll(java.util.Collection<? extends E> c)
void
bind(Activator activator)
Called by db4o after the object instantiation.void
clear()
java.lang.Object
clone()
boolean
contains(java.lang.Object o)
E
first()
java.util.SortedSet<E>
headSet(E toElement)
boolean
isEmpty()
java.util.Iterator<E>
iterator()
E
last()
boolean
remove(java.lang.Object o)
int
size()
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:Activatable
Should be called by every reading field access of an object.
The recommended implementation of this method is to callActivator.activate(ActivationPurpose)
on theActivator
that was previously passed toActivatable.bind(Activator)
.- Specified by:
activate
in interfaceActivatable
- Parameters:
purpose
- Whereever this object is accessed to read or write. SeeActivationPurpose
-
bind
public void bind(Activator activator)
Description copied from interface:Activatable
Called 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 passedActivator
in a transient field of the object.- Specified by:
bind
in 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:
clone
in 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()
-
-