Package com.db4o.collections
Class ActivatableStack<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.Vector<E>
-
- java.util.Stack<E>
-
- com.db4o.collections.ActivatableStack<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.List<E>
,java.util.RandomAccess
public class ActivatableStack<E> extends java.util.Stack<E> implements ActivatableList<E>
extends Stack with Transparent Activation and Transparent Persistence support.- Since:
- 7.9
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ActivatableStack()
-
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
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)
boolean
empty()
boolean
equals(java.lang.Object o)
E
get(int index)
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)
E
peek()
E
pop()
E
push(E item)
E
remove(int index)
boolean
remove(java.lang.Object o)
boolean
removeAll(java.util.Collection<?> c)
protected void
removeRange(int fromIndex, int toIndex)
int
search(java.lang.Object o)
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)
-
Methods inherited from class java.util.Vector
addElement, capacity, copyInto, elementAt, elements, ensureCapacity, firstElement, forEach, indexOf, insertElementAt, lastElement, lastIndexOf, removeAllElements, removeElement, removeElementAt, removeIf, replaceAll, retainAll, setElementAt, setSize, sort, spliterator, toString, trimToSize
-
-
-
-
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)
-
clear
public void clear()
-
clone
public java.lang.Object clone()
- Overrides:
clone
in classjava.util.Vector<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)
-
empty
public boolean empty()
- Overrides:
empty
in classjava.util.Stack<E>
-
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)
-
removeRange
protected void removeRange(int fromIndex, int toIndex)
- Overrides:
removeRange
in classjava.util.Vector<E>
-
size
public int size()
-
search
public int search(java.lang.Object o)
- Overrides:
search
in classjava.util.Stack<E>
-
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)
-
-