Class 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
    • 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.AbstractSet

        equals, hashCode, removeAll
      • Methods inherited from class java.util.AbstractCollection

        containsAll, retainAll, toArray, toArray, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • 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

      • 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 passed Activator in a transient field of the object.
        Specified by:
        bind in interface Activatable
        Parameters:
        activator - the Activator instance to bind
      • 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.util.Collection<E>
        Specified by:
        iterator in interface java.lang.Iterable<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>