db4o 8.0

com.db4o.collections
Class ActivatableTreeSet<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.TreeSet<E>
              extended by 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
ActivatableTreeSet()
           
ActivatableTreeSet(java.util.Collection<? extends E> c)
           
ActivatableTreeSet(java.util.Comparator<? super E> comparator)
           
ActivatableTreeSet(java.util.SortedSet<E> s)
           
 
Method Summary
 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 upon 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, subSet, tailSet
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
containsAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
 

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 call Activator.activate(ActivationPurpose) on the Activator that was previously passed to Activatable.bind(Activator).

Specified by:
activate in interface Activatable
Parameters:
purpose - TODO

bind

public void bind(Activator activator)
Description copied from interface: Activatable
called by db4o upon instantiation.

The recommended implementation of this method is to store the passed Activator in a transient field of the object.

Specified by:
bind in interface Activatable
Parameters:
activator - the Activator

add

public boolean add(E e)
Specified by:
add in interface java.util.Collection<E>
Specified by:
add in interface java.util.Set<E>
Overrides:
add in class java.util.TreeSet<E>

addAll

public boolean addAll(java.util.Collection<? extends E> c)
Specified by:
addAll in interface java.util.Collection<E>
Specified by:
addAll in interface java.util.Set<E>
Overrides:
addAll in class java.util.TreeSet<E>

clear

public void clear()
Specified by:
clear in interface java.util.Collection<E>
Specified by:
clear in interface java.util.Set<E>
Overrides:
clear in class java.util.TreeSet<E>

clone

public java.lang.Object clone()
Overrides:
clone in class java.util.TreeSet<E>

contains

public boolean contains(java.lang.Object o)
Specified by:
contains in interface java.util.Collection<E>
Specified by:
contains in interface java.util.Set<E>
Overrides:
contains in class java.util.TreeSet<E>

first

public E first()
Specified by:
first in interface java.util.SortedSet<E>
Overrides:
first in class java.util.TreeSet<E>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Collection<E>
Specified by:
isEmpty in interface java.util.Set<E>
Overrides:
isEmpty in class java.util.TreeSet<E>

iterator

public java.util.Iterator<E> iterator()
Specified by:
iterator in interface java.lang.Iterable<E>
Specified by:
iterator in interface java.util.Collection<E>
Specified by:
iterator in interface java.util.NavigableSet<E>
Specified by:
iterator in interface java.util.Set<E>
Overrides:
iterator in class java.util.TreeSet<E>

last

public E last()
Specified by:
last in interface java.util.SortedSet<E>
Overrides:
last in class java.util.TreeSet<E>

remove

public boolean remove(java.lang.Object o)
Specified by:
remove in interface java.util.Collection<E>
Specified by:
remove in interface java.util.Set<E>
Overrides:
remove in class java.util.TreeSet<E>

size

public int size()
Specified by:
size in interface java.util.Collection<E>
Specified by:
size in interface java.util.Set<E>
Overrides:
size in class java.util.TreeSet<E>

subSet

public java.util.SortedSet<E> subSet(E fromElement,
                                     E toElement)
Specified by:
subSet in interface java.util.NavigableSet<E>
Specified by:
subSet in interface java.util.SortedSet<E>
Overrides:
subSet in class java.util.TreeSet<E>

headSet

public java.util.SortedSet<E> headSet(E toElement)
Specified by:
headSet in interface java.util.NavigableSet<E>
Specified by:
headSet in interface java.util.SortedSet<E>
Overrides:
headSet in class java.util.TreeSet<E>

tailSet

public java.util.SortedSet<E> tailSet(E fromElement)
Specified by:
tailSet in interface java.util.NavigableSet<E>
Specified by:
tailSet in interface java.util.SortedSet<E>
Overrides:
tailSet in class java.util.TreeSet<E>

db4o 8.0

Copyright 2009 Versant Corporation. All rights reserved.