|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.processmining.framework.log.rfb.AuditTrailEntriesProxy
public class AuditTrailEntriesProxy
This class implements a lightweight proxy, which transparently maps the
legacy AuditTrailEntries
interface to the actual AuditTrailEntryList
interface.
Field Summary | |
---|---|
protected AuditTrailEntryList |
ates
The proxied container |
protected boolean |
canRemove
Flag to ensure at most one removal per invocation of next() . |
protected int |
position
Memory index for iterator functionality |
Constructor Summary | |
---|---|
AuditTrailEntriesProxy(AuditTrailEntryList ateList,
int startPosition)
Creates a new proxy instance, backed by the provided audit trail entry list and with its iterator set to the specified position in the list. |
Method Summary | |
---|---|
void |
add(AuditTrailEntry ate)
Adds an audit trail entry to the end of the list. |
void |
add(AuditTrailEntry ate,
int pos)
Adds an audit trail entry to the given position in the list. |
java.lang.Object |
clone()
Makes a deep copy of this object. |
AuditTrailEntries |
cloneIteratorOnly()
Makes a shallow copy of this object. |
AuditTrailEntry |
first()
Gets the first element out of the list of audit trail entries. |
AuditTrailEntry |
getEntry(int n)
Retrieves an audit trail entry based on the given position in the list. |
boolean |
hasNext()
Iterator-style access method. |
AuditTrailEntry |
last()
Gets the last element out of the list of audit trail entries. |
AuditTrailEntry |
next()
Iterator-style access method. |
void |
remove()
Iterator-style access method. |
void |
reset()
Iterator-style access method. |
int |
size()
Determines the number of audit trail entries stored in the list. |
java.util.ArrayList |
toArrayList()
Returns the list of audit trail entries. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.processmining.framework.log.AuditTrailEntries |
---|
toString |
Field Detail |
---|
protected AuditTrailEntryList ates
protected int position
protected boolean canRemove
next()
.
Constructor Detail |
---|
public AuditTrailEntriesProxy(AuditTrailEntryList ateList, int startPosition)
ateList
- startPosition
- Method Detail |
---|
public void add(AuditTrailEntry ate)
AuditTrailEntries
add
in interface AuditTrailEntries
ate
- the entry to addpublic void add(AuditTrailEntry ate, int pos)
AuditTrailEntries
add
in interface AuditTrailEntries
ate
- the entry to addpos
- the position of the entrypublic AuditTrailEntries cloneIteratorOnly()
AuditTrailEntries
AuditTrailEntry
elements will be not cloned.
However, the iterator is duplicated in its current positon.
cloneIteratorOnly
in interface AuditTrailEntries
public AuditTrailEntry first()
AuditTrailEntries
first
in interface AuditTrailEntries
AuditTrailEntry
from the listpublic AuditTrailEntry getEntry(int n)
AuditTrailEntries
getEntry
in interface AuditTrailEntries
n
- the index position in the list (starting with 0)
AuditTrailEntry stored at the given position
public boolean hasNext()
AuditTrailEntries
Determines whether there is another audit trail entry left. (This relates to the built-in iterator walking through the elements.)
hasNext
in interface AuditTrailEntries
true
if there is at least one audit trail entry left,
false
otherwise.next
public AuditTrailEntry last()
AuditTrailEntries
last
in interface AuditTrailEntries
AuditTrailEntry
from the listpublic AuditTrailEntry next()
AuditTrailEntries
Retrieves the next audit trail entry from the list.
(This relates to the built-in iterator walking through the elements and
implies moving it one poksition further.)
Before calling this method one should call hasNext
in
order to determine whether there is onother element left.
next
in interface AuditTrailEntries
AuditTrailEntry
from the listpublic void remove()
AuditTrailEntries
Remove the entry that was returned by the last call to next()
.
remove
in interface AuditTrailEntries
public void reset()
AuditTrailEntries
Resets the built-in iterator to the first element of the list.
reset
in interface AuditTrailEntries
public int size()
AuditTrailEntries
size
in interface AuditTrailEntries
public java.util.ArrayList toArrayList()
AuditTrailEntries
WARNING: The usage contract for this interface determines, that any changes that you make for the returned array list will not be persistent to both this instance and the potentially wrapped higher-level classes! Use dedicated modification methods for this purpose!
toArrayList
in interface AuditTrailEntries
ArrayList
public java.lang.Object clone()
AuditTrailEntries
AuditTrailEntry
elements and the iterator in its current positon will be duplicated.
Overrides clone
.
clone
in interface AuditTrailEntries
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |