Package com.db4o.collections
Class ActivatableLinkedList<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.AbstractSequentialList<E>
-
- java.util.LinkedList<E>
-
- com.db4o.collections.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 Summary
Constructors Constructor Description ActivatableLinkedList()
ActivatableLinkedList(java.util.Collection<E> collection)
-
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.void
add(int index, E element)
boolean
add(E e)
boolean
addAll(int index, java.util.Collection<? extends E> c)
boolean
addAll(java.util.Collection<? extends E> c)
void
addFirst(E e)
void
addLast(E e)
void
bind(Activator activator)
Called by db4o after the object instantiation.void
clear()
java.lang.Object
clone()
boolean
contains(java.lang.Object o)
boolean
containsAll(java.util.Collection<?> c)
java.util.Iterator<E>
descendingIterator()
E
element()
boolean
equals(java.lang.Object o)
E
get(int index)
E
getFirst()
E
getLast()
int
hashCode()
int
indexOf(java.lang.Object o)
boolean
isEmpty()
java.util.Iterator<E>
iterator()
int
lastIndexOf(java.lang.Object o)
java.util.ListIterator<E>
listIterator()
java.util.ListIterator<E>
listIterator(int index)
boolean
offer(E e)
boolean
offerFirst(E e)
boolean
offerLast(E e)
E
peek()
E
peekFirst()
E
peekLast()
E
poll()
E
pollFirst()
E
pollLast()
E
pop()
void
push(E element)
E
remove()
E
remove(int index)
boolean
remove(java.lang.Object o)
boolean
removeAll(java.util.Collection<?> c)
E
removeFirst()
boolean
removeFirstOccurrence(java.lang.Object element)
E
removeLast()
boolean
removeLastOccurrence(java.lang.Object element)
boolean
retainAll(java.util.Collection<?> c)
E
set(int index, E element)
int
size()
java.util.List<E>
subList(int fromIndex, int toIndex)
java.lang.Object[]
toArray()
<T> T[]
toArray(T[] a)
java.lang.String
toString()
-
-
-
Constructor Detail
-
ActivatableLinkedList
public ActivatableLinkedList()
-
ActivatableLinkedList
public ActivatableLinkedList(java.util.Collection<E> collection)
-
-
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)
-
add
public void add(int index, E element)
-
addAll
public boolean addAll(java.util.Collection<? extends E> c)
-
addAll
public boolean addAll(int index, java.util.Collection<? extends E> c)
-
addFirst
public void addFirst(E e)
-
addLast
public void addLast(E e)
-
clear
public void clear()
-
clone
public java.lang.Object clone()
- Overrides:
clone
in classjava.util.LinkedList<E>
-
contains
public boolean contains(java.lang.Object o)
-
containsAll
public boolean containsAll(java.util.Collection<?> c)
-
equals
public boolean equals(java.lang.Object o)
-
get
public E get(int index)
-
hashCode
public int hashCode()
-
indexOf
public int indexOf(java.lang.Object o)
-
iterator
public java.util.Iterator<E> iterator()
-
isEmpty
public boolean isEmpty()
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
-
listIterator
public java.util.ListIterator<E> listIterator()
-
listIterator
public java.util.ListIterator<E> listIterator(int index)
-
remove
public E remove(int index)
-
remove
public boolean remove(java.lang.Object o)
-
size
public int size()
-
subList
public java.util.List<E> subList(int fromIndex, int toIndex)
-
toArray
public java.lang.Object[] toArray()
-
toArray
public <T> T[] toArray(T[] a)
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
-
descendingIterator
public java.util.Iterator<E> descendingIterator()
-
element
public E element()
-
getFirst
public E getFirst()
-
getLast
public E getLast()
-
offer
public boolean offer(E e)
-
offerFirst
public boolean offerFirst(E e)
-
offerLast
public boolean offerLast(E e)
-
peek
public E peek()
-
peekFirst
public E peekFirst()
-
peekLast
public E peekLast()
-
poll
public E poll()
-
pollFirst
public E pollFirst()
-
pollLast
public E pollLast()
-
pop
public E pop()
-
push
public void push(E element)
-
remove
public E remove()
-
removeFirst
public E removeFirst()
-
removeFirstOccurrence
public boolean removeFirstOccurrence(java.lang.Object element)
-
removeLast
public E removeLast()
-
removeLastOccurrence
public boolean removeLastOccurrence(java.lang.Object element)
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.util.AbstractCollection<E>
-
-