Class ActivatableLinkedList<E>

  • All Implemented Interfaces:
    ActivatableCollection<E>, ActivatableList<E>, Activatable, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.Deque<E>, java.util.List<E>, java.util.Queue<E>

    public class ActivatableLinkedList<E>
    extends java.util.LinkedList<E>
    implements ActivatableList<E>
    extends LinkedList with Transparent Activation and Transparent Persistence support
    Since:
    7.9
    See Also:
    Serialized Form
    • Constructor Detail

      • ActivatableLinkedList

        public ActivatableLinkedList()
      • ActivatableLinkedList

        public ActivatableLinkedList​(java.util.Collection<E> collection)
    • 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.Deque<E>
        Specified by:
        add in interface java.util.List<E>
        Specified by:
        add in interface java.util.Queue<E>
        Overrides:
        add in class java.util.LinkedList<E>
      • add

        public void add​(int index,
                        E element)
        Specified by:
        add in interface java.util.List<E>
        Overrides:
        add in class java.util.LinkedList<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.Deque<E>
        Specified by:
        addAll in interface java.util.List<E>
        Overrides:
        addAll in class java.util.LinkedList<E>
      • addAll

        public boolean addAll​(int index,
                              java.util.Collection<? extends E> c)
        Specified by:
        addAll in interface java.util.List<E>
        Overrides:
        addAll in class java.util.LinkedList<E>
      • addFirst

        public void addFirst​(E e)
        Specified by:
        addFirst in interface java.util.Deque<E>
        Overrides:
        addFirst in class java.util.LinkedList<E>
      • addLast

        public void addLast​(E e)
        Specified by:
        addLast in interface java.util.Deque<E>
        Overrides:
        addLast in class java.util.LinkedList<E>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<E>
        Specified by:
        clear in interface java.util.List<E>
        Overrides:
        clear in class java.util.LinkedList<E>
      • clone

        public java.lang.Object clone()
        Overrides:
        clone in class java.util.LinkedList<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.Deque<E>
        Specified by:
        contains in interface java.util.List<E>
        Overrides:
        contains in class java.util.LinkedList<E>
      • containsAll

        public boolean containsAll​(java.util.Collection<?> c)
        Specified by:
        containsAll in interface java.util.Collection<E>
        Specified by:
        containsAll in interface java.util.List<E>
        Overrides:
        containsAll in class java.util.AbstractCollection<E>
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in interface java.util.Collection<E>
        Specified by:
        equals in interface java.util.List<E>
        Overrides:
        equals in class java.util.AbstractList<E>
      • get

        public E get​(int index)
        Specified by:
        get in interface java.util.List<E>
        Overrides:
        get in class java.util.LinkedList<E>
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Collection<E>
        Specified by:
        hashCode in interface java.util.List<E>
        Overrides:
        hashCode in class java.util.AbstractList<E>
      • indexOf

        public int indexOf​(java.lang.Object o)
        Specified by:
        indexOf in interface java.util.List<E>
        Overrides:
        indexOf in class java.util.LinkedList<E>
      • iterator

        public java.util.Iterator<E> iterator()
        Specified by:
        iterator in interface java.util.Collection<E>
        Specified by:
        iterator in interface java.util.Deque<E>
        Specified by:
        iterator in interface java.lang.Iterable<E>
        Specified by:
        iterator in interface java.util.List<E>
        Overrides:
        iterator in class java.util.AbstractSequentialList<E>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Collection<E>
        Specified by:
        isEmpty in interface java.util.List<E>
        Overrides:
        isEmpty in class java.util.AbstractCollection<E>
      • lastIndexOf

        public int lastIndexOf​(java.lang.Object o)
        Specified by:
        lastIndexOf in interface java.util.List<E>
        Overrides:
        lastIndexOf in class java.util.LinkedList<E>
      • listIterator

        public java.util.ListIterator<E> listIterator()
        Specified by:
        listIterator in interface java.util.List<E>
        Overrides:
        listIterator in class java.util.AbstractList<E>
      • listIterator

        public java.util.ListIterator<E> listIterator​(int index)
        Specified by:
        listIterator in interface java.util.List<E>
        Overrides:
        listIterator in class java.util.LinkedList<E>
      • remove

        public E remove​(int index)
        Specified by:
        remove in interface java.util.List<E>
        Overrides:
        remove in class java.util.LinkedList<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.Deque<E>
        Specified by:
        remove in interface java.util.List<E>
        Overrides:
        remove in class java.util.LinkedList<E>
      • set

        public E set​(int index,
                     E element)
        Specified by:
        set in interface java.util.List<E>
        Overrides:
        set in class java.util.LinkedList<E>
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<E>
        Specified by:
        size in interface java.util.Deque<E>
        Specified by:
        size in interface java.util.List<E>
        Overrides:
        size in class java.util.LinkedList<E>
      • subList

        public java.util.List<E> subList​(int fromIndex,
                                         int toIndex)
        Specified by:
        subList in interface java.util.List<E>
        Overrides:
        subList in class java.util.AbstractList<E>
      • toArray

        public java.lang.Object[] toArray()
        Specified by:
        toArray in interface java.util.Collection<E>
        Specified by:
        toArray in interface java.util.List<E>
        Overrides:
        toArray in class java.util.LinkedList<E>
      • toArray

        public <T> T[] toArray​(T[] a)
        Specified by:
        toArray in interface java.util.Collection<E>
        Specified by:
        toArray in interface java.util.List<E>
        Overrides:
        toArray in class java.util.LinkedList<E>
      • removeAll

        public boolean removeAll​(java.util.Collection<?> c)
        Specified by:
        removeAll in interface java.util.Collection<E>
        Specified by:
        removeAll in interface java.util.List<E>
        Overrides:
        removeAll in class java.util.AbstractCollection<E>
      • descendingIterator

        public java.util.Iterator<E> descendingIterator()
        Specified by:
        descendingIterator in interface java.util.Deque<E>
        Overrides:
        descendingIterator in class java.util.LinkedList<E>
      • element

        public E element()
        Specified by:
        element in interface java.util.Deque<E>
        Specified by:
        element in interface java.util.Queue<E>
        Overrides:
        element in class java.util.LinkedList<E>
      • getFirst

        public E getFirst()
        Specified by:
        getFirst in interface java.util.Deque<E>
        Overrides:
        getFirst in class java.util.LinkedList<E>
      • getLast

        public E getLast()
        Specified by:
        getLast in interface java.util.Deque<E>
        Overrides:
        getLast in class java.util.LinkedList<E>
      • offer

        public boolean offer​(E e)
        Specified by:
        offer in interface java.util.Deque<E>
        Specified by:
        offer in interface java.util.Queue<E>
        Overrides:
        offer in class java.util.LinkedList<E>
      • offerFirst

        public boolean offerFirst​(E e)
        Specified by:
        offerFirst in interface java.util.Deque<E>
        Overrides:
        offerFirst in class java.util.LinkedList<E>
      • offerLast

        public boolean offerLast​(E e)
        Specified by:
        offerLast in interface java.util.Deque<E>
        Overrides:
        offerLast in class java.util.LinkedList<E>
      • peek

        public E peek()
        Specified by:
        peek in interface java.util.Deque<E>
        Specified by:
        peek in interface java.util.Queue<E>
        Overrides:
        peek in class java.util.LinkedList<E>
      • peekFirst

        public E peekFirst()
        Specified by:
        peekFirst in interface java.util.Deque<E>
        Overrides:
        peekFirst in class java.util.LinkedList<E>
      • peekLast

        public E peekLast()
        Specified by:
        peekLast in interface java.util.Deque<E>
        Overrides:
        peekLast in class java.util.LinkedList<E>
      • poll

        public E poll()
        Specified by:
        poll in interface java.util.Deque<E>
        Specified by:
        poll in interface java.util.Queue<E>
        Overrides:
        poll in class java.util.LinkedList<E>
      • pollFirst

        public E pollFirst()
        Specified by:
        pollFirst in interface java.util.Deque<E>
        Overrides:
        pollFirst in class java.util.LinkedList<E>
      • pollLast

        public E pollLast()
        Specified by:
        pollLast in interface java.util.Deque<E>
        Overrides:
        pollLast in class java.util.LinkedList<E>
      • pop

        public E pop()
        Specified by:
        pop in interface java.util.Deque<E>
        Overrides:
        pop in class java.util.LinkedList<E>
      • push

        public void push​(E element)
        Specified by:
        push in interface java.util.Deque<E>
        Overrides:
        push in class java.util.LinkedList<E>
      • remove

        public E remove()
        Specified by:
        remove in interface java.util.Deque<E>
        Specified by:
        remove in interface java.util.Queue<E>
        Overrides:
        remove in class java.util.LinkedList<E>
      • removeFirst

        public E removeFirst()
        Specified by:
        removeFirst in interface java.util.Deque<E>
        Overrides:
        removeFirst in class java.util.LinkedList<E>
      • removeFirstOccurrence

        public boolean removeFirstOccurrence​(java.lang.Object element)
        Specified by:
        removeFirstOccurrence in interface java.util.Deque<E>
        Overrides:
        removeFirstOccurrence in class java.util.LinkedList<E>
      • removeLast

        public E removeLast()
        Specified by:
        removeLast in interface java.util.Deque<E>
        Overrides:
        removeLast in class java.util.LinkedList<E>
      • removeLastOccurrence

        public boolean removeLastOccurrence​(java.lang.Object element)
        Specified by:
        removeLastOccurrence in interface java.util.Deque<E>
        Overrides:
        removeLastOccurrence in class java.util.LinkedList<E>
      • retainAll

        public boolean retainAll​(java.util.Collection<?> c)
        Specified by:
        retainAll in interface java.util.Collection<E>
        Specified by:
        retainAll in interface java.util.List<E>
        Overrides:
        retainAll in class java.util.AbstractCollection<E>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.util.AbstractCollection<E>