org.processmining.framework.log.rfb
Class ATEArrayListProxy

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList
              extended by org.processmining.framework.log.rfb.ATEArrayListProxy
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess

public class ATEArrayListProxy
extends java.util.ArrayList

Provides the java.util.ArrayList interface to a wrapped AuditTrailEntryList.

Used to retain backward compatibility to previous classic log reading and access implementation.

This class implements a lightweight proxy redirecting all access transparently and immediately to the wrapped audit trail entry list instance, with all performance implications of this.

It should not be used deliberately, its purpose is to retain the functionality of e.g. LogFilter implementations which use the direct access to a ProcessInstance's audit trail entries via the toArrayList() method of AuditTrailEntries for modification.

Owners of code using the toArrayList() method for write access should adjust their code accordingly. Implementations in this proxy class may miss, fail, or be implemented in a bad-performing or erroneous manner. Check your results!

Author:
Christian W. Guenther (christian at deckfour dot org)
See Also:
AuditTrailEntryList, Serialized Form

Field Summary
protected  AuditTrailEntryList list
          The wrapped instance of AuditTrailEntryList to which all access is transparently delegated.
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
protected ATEArrayListProxy()
          Not in use: not applicable in this context!
  ATEArrayListProxy(AuditTrailEntryList aList)
          Wraps the provided list of audit trail entries into an interface derived from java.util.ArrayList
protected ATEArrayListProxy(java.util.Collection arg0)
          Not in use: not applicable in this context!
protected ATEArrayListProxy(int initialCapacity)
          Not in use: not applicable in this context!
 
Method Summary
 void add(int arg0, java.lang.Object arg1)
           
 boolean add(java.lang.Object arg0)
           
 boolean addAll(java.util.Collection arg0)
           
 boolean addAll(int arg0, java.util.Collection arg1)
           
 void clear()
           
 java.lang.Object clone()
           
 boolean contains(java.lang.Object elem)
           
 boolean containsAll(java.util.Collection arg0)
           
 void ensureCapacity(int minCapacity)
           
 boolean equals(java.lang.Object o)
           
protected  void finalize()
           
 java.lang.Object get(int index)
           
 int hashCode()
           
 int indexOf(java.lang.Object elem)
           
 boolean isEmpty()
           
 java.util.Iterator iterator()
           
 int lastIndexOf(java.lang.Object elem)
           
 java.util.ListIterator listIterator()
           
 java.util.ListIterator listIterator(int index)
           
 java.lang.Object remove(int index)
           
 boolean remove(java.lang.Object o)
           
 boolean removeAll(java.util.Collection arg0)
           
protected  void removeRange(int fromIndex, int toIndex)
           
 boolean retainAll(java.util.Collection arg0)
           
 java.lang.Object set(int arg0, java.lang.Object arg1)
           
 int size()
           
 java.util.List subList(int fromIndex, int toIndex)
           
 java.lang.Object[] toArray()
           
 java.lang.Object[] toArray(java.lang.Object[] arg0)
           
 java.lang.String toString()
           
 void trimToSize()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

list

protected AuditTrailEntryList list
The wrapped instance of AuditTrailEntryList to which all access is transparently delegated.

Constructor Detail

ATEArrayListProxy

public ATEArrayListProxy(AuditTrailEntryList aList)
Wraps the provided list of audit trail entries into an interface derived from java.util.ArrayList

Parameters:
aList -

ATEArrayListProxy

protected ATEArrayListProxy(int initialCapacity)
Not in use: not applicable in this context!

Overwritten and declared protected to prevent from being used.

Parameters:
initialCapacity -

ATEArrayListProxy

protected ATEArrayListProxy()
Not in use: not applicable in this context!

Overwritten and declared protected to prevent from being used.


ATEArrayListProxy

protected ATEArrayListProxy(java.util.Collection arg0)
Not in use: not applicable in this context!

Overwritten and declared protected to prevent from being used.

Parameters:
arg0 -
Method Detail

add

public void add(int arg0,
                java.lang.Object arg1)
Specified by:
add in interface java.util.List
Overrides:
add in class java.util.ArrayList

add

public boolean add(java.lang.Object arg0)
Specified by:
add in interface java.util.Collection
Specified by:
add in interface java.util.List
Overrides:
add in class java.util.ArrayList

addAll

public boolean addAll(java.util.Collection arg0)
Specified by:
addAll in interface java.util.Collection
Specified by:
addAll in interface java.util.List
Overrides:
addAll in class java.util.ArrayList

addAll

public boolean addAll(int arg0,
                      java.util.Collection arg1)
Specified by:
addAll in interface java.util.List
Overrides:
addAll in class java.util.ArrayList

clear

public void clear()
Specified by:
clear in interface java.util.Collection
Specified by:
clear in interface java.util.List
Overrides:
clear in class java.util.ArrayList

clone

public java.lang.Object clone()
Overrides:
clone in class java.util.ArrayList

contains

public boolean contains(java.lang.Object elem)
Specified by:
contains in interface java.util.Collection
Specified by:
contains in interface java.util.List
Overrides:
contains in class java.util.ArrayList

ensureCapacity

public void ensureCapacity(int minCapacity)
Overrides:
ensureCapacity in class java.util.ArrayList

get

public java.lang.Object get(int index)
Specified by:
get in interface java.util.List
Overrides:
get in class java.util.ArrayList

indexOf

public int indexOf(java.lang.Object elem)
Specified by:
indexOf in interface java.util.List
Overrides:
indexOf in class java.util.ArrayList

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Collection
Specified by:
isEmpty in interface java.util.List
Overrides:
isEmpty in class java.util.ArrayList

lastIndexOf

public int lastIndexOf(java.lang.Object elem)
Specified by:
lastIndexOf in interface java.util.List
Overrides:
lastIndexOf in class java.util.ArrayList

remove

public java.lang.Object remove(int index)
Specified by:
remove in interface java.util.List
Overrides:
remove in class java.util.ArrayList

remove

public boolean remove(java.lang.Object o)
Specified by:
remove in interface java.util.Collection
Specified by:
remove in interface java.util.List
Overrides:
remove in class java.util.ArrayList

removeRange

protected void removeRange(int fromIndex,
                           int toIndex)
Overrides:
removeRange in class java.util.ArrayList

set

public java.lang.Object set(int arg0,
                            java.lang.Object arg1)
Specified by:
set in interface java.util.List
Overrides:
set in class java.util.ArrayList

size

public int size()
Specified by:
size in interface java.util.Collection
Specified by:
size in interface java.util.List
Overrides:
size in class java.util.ArrayList

toArray

public java.lang.Object[] toArray()
Specified by:
toArray in interface java.util.Collection
Specified by:
toArray in interface java.util.List
Overrides:
toArray in class java.util.ArrayList

toArray

public java.lang.Object[] toArray(java.lang.Object[] arg0)
Specified by:
toArray in interface java.util.Collection
Specified by:
toArray in interface java.util.List
Overrides:
toArray in class java.util.ArrayList

trimToSize

public void trimToSize()
Overrides:
trimToSize in class java.util.ArrayList

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Collection
Specified by:
equals in interface java.util.List
Overrides:
equals in class java.util.AbstractList

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.Collection
Specified by:
hashCode in interface java.util.List
Overrides:
hashCode in class java.util.AbstractList

iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface java.lang.Iterable
Specified by:
iterator in interface java.util.Collection
Specified by:
iterator in interface java.util.List
Overrides:
iterator in class java.util.AbstractList

listIterator

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

listIterator

public java.util.ListIterator listIterator(int index)
Specified by:
listIterator in interface java.util.List
Overrides:
listIterator in class java.util.AbstractList

subList

public java.util.List subList(int fromIndex,
                              int toIndex)
Specified by:
subList in interface java.util.List
Overrides:
subList in class java.util.AbstractList

containsAll

public boolean containsAll(java.util.Collection arg0)
Specified by:
containsAll in interface java.util.Collection
Specified by:
containsAll in interface java.util.List
Overrides:
containsAll in class java.util.AbstractCollection

removeAll

public boolean removeAll(java.util.Collection arg0)
Specified by:
removeAll in interface java.util.Collection
Specified by:
removeAll in interface java.util.List
Overrides:
removeAll in class java.util.AbstractCollection

retainAll

public boolean retainAll(java.util.Collection arg0)
Specified by:
retainAll in interface java.util.Collection
Specified by:
retainAll in interface java.util.List
Overrides:
retainAll in class java.util.AbstractCollection

toString

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

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable