org.jwall.audit.script
Class EventList<E extends Event>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<ScriptEvent>
          extended by org.jwall.audit.script.EventList<E>
Type Parameters:
E -
All Implemented Interfaces:
Iterable<ScriptEvent>, Collection<ScriptEvent>, List<ScriptEvent>

public class EventList<E extends Event>
extends AbstractList<ScriptEvent>

This class implements a read-only list that is backed up by an event view and a specific filter-expression. It will lazily provide a batch-wise iteration over the list items instead of loading a large set from the database all at once.

Author:
Christian Bockermann <chris@jwall.org>

Constructor Summary
EventList(EventView<E> view, FilterExpression filter)
           
 
Method Summary
 void clear()
           
 ScriptEvent get(int idx)
           
 boolean isEmpty()
           
 Iterator<ScriptEvent> iterator()
           
 int lastIndexOf(Object arg0)
           
 ListIterator<ScriptEvent> listIterator()
           
 ListIterator<ScriptEvent> listIterator(int arg0)
           
 int size()
           
 
Methods inherited from class java.util.AbstractList
add, add, addAll, equals, hashCode, indexOf, remove, set, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

EventList

public EventList(EventView<E> view,
                 FilterExpression filter)
Method Detail

clear

public void clear()
Specified by:
clear in interface Collection<ScriptEvent>
Specified by:
clear in interface List<ScriptEvent>
Overrides:
clear in class AbstractList<ScriptEvent>

get

public ScriptEvent get(int idx)
Specified by:
get in interface List<ScriptEvent>
Specified by:
get in class AbstractList<ScriptEvent>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<ScriptEvent>
Specified by:
isEmpty in interface List<ScriptEvent>
Overrides:
isEmpty in class AbstractCollection<ScriptEvent>

iterator

public Iterator<ScriptEvent> iterator()
Specified by:
iterator in interface Iterable<ScriptEvent>
Specified by:
iterator in interface Collection<ScriptEvent>
Specified by:
iterator in interface List<ScriptEvent>
Overrides:
iterator in class AbstractList<ScriptEvent>

lastIndexOf

public int lastIndexOf(Object arg0)
Specified by:
lastIndexOf in interface List<ScriptEvent>
Overrides:
lastIndexOf in class AbstractList<ScriptEvent>

size

public int size()
Specified by:
size in interface Collection<ScriptEvent>
Specified by:
size in interface List<ScriptEvent>
Specified by:
size in class AbstractCollection<ScriptEvent>

listIterator

public ListIterator<ScriptEvent> listIterator()
Specified by:
listIterator in interface List<ScriptEvent>
Overrides:
listIterator in class AbstractList<ScriptEvent>

listIterator

public ListIterator<ScriptEvent> listIterator(int arg0)
Specified by:
listIterator in interface List<ScriptEvent>
Overrides:
listIterator in class AbstractList<ScriptEvent>


Copyright © 2012 jwall.org. All Rights Reserved.