org.kinsources.kiwa.actalog
Class EventLogs

java.lang.Object
  extended by org.kinsources.kiwa.actalog.EventLogs
All Implemented Interfaces:
java.lang.Iterable<EventLog>

public class EventLogs
extends java.lang.Object
implements java.lang.Iterable<EventLog>

Author:
christian.momon@devinsy.fr

Constructor Summary
EventLogs()
           
EventLogs(EventLogs source)
          This constructor does a shallow copy of parameter.
EventLogs(int initialCapacity)
           
 
Method Summary
 void add(EventLog eventLog)
           
 void clear()
           
 EventLogs copy()
          This methods returns a shallow copy of the current object.
 int countByCategory(EventLog.Category category)
           
 EventLogs first(int targetCount)
           
 EventLogs getByCategory(EventLog.Category category)
           
 EventLog getByIndex(int index)
           
 boolean isEmpty()
           
 boolean isNotEmpty()
           
 java.util.Iterator<EventLog> iterator()
           
 EventLogs lastest(int targetCount)
           
 long lastId()
           
 EventLogs reverse()
           
 int size()
           
 EventLogs sortByDate()
           
 EventLogs sortById()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventLogs

public EventLogs()

EventLogs

public EventLogs(EventLogs source)
This constructor does a shallow copy of parameter.


EventLogs

public EventLogs(int initialCapacity)
Method Detail

add

public void add(EventLog eventLog)
Parameters:
eventLog -

clear

public void clear()

copy

public EventLogs copy()
This methods returns a shallow copy of the current object.

Returns:
a shallow copy of the current object.

countByCategory

public int countByCategory(EventLog.Category category)
Parameters:
category -
Returns:

first

public EventLogs first(int targetCount)
Parameters:
targetCount -
Returns:

getByCategory

public EventLogs getByCategory(EventLog.Category category)
Parameters:
category -
Returns:

getByIndex

public EventLog getByIndex(int index)
Parameters:
index -
Returns:

isEmpty

public boolean isEmpty()
Returns:

isNotEmpty

public boolean isNotEmpty()
Returns:

iterator

public java.util.Iterator<EventLog> iterator()
Specified by:
iterator in interface java.lang.Iterable<EventLog>

lastest

public EventLogs lastest(int targetCount)
Parameters:
lastCount -
Returns:

lastId

public long lastId()
Returns:

reverse

public EventLogs reverse()
Returns:

size

public int size()
Returns:

sortByDate

public EventLogs sortByDate()
Returns:

sortById

public EventLogs sortById()
Returns: