org.kinsources.kiwa.actilog
Class Logs

java.lang.Object
  extended by org.kinsources.kiwa.actilog.Logs
All Implemented Interfaces:
java.lang.Iterable<Log>

public class Logs
extends java.lang.Object
implements java.lang.Iterable<Log>

Author:
christian.momon@devinsy.fr

Constructor Summary
Logs()
           
Logs(int initialCapacity)
           
 
Method Summary
 void add(Log log)
           
 void clear()
           
 Logs copy()
          This methods returns a shallow copy of the current object.
 Logs findAfter(org.joda.time.DateTime date)
           
 Logs findBefore(org.joda.time.DateTime date)
           
 Logs findByDetails(java.lang.String pattern)
           
 Logs findByEvent(java.lang.String pattern)
           
 Logs findByLevel(Log.Level level)
           
 Logs first(int targetCount)
           
 Log getByIndex(int index)
           
 boolean isEmpty()
           
 boolean isNotEmpty()
           
 java.util.Iterator<Log> iterator()
           
 Logs lastest(int targetCount)
           
 long lastId()
           
 Logs reverse()
           
 int size()
           
 Logs sortByDate()
           
 Logs sortById()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Logs

public Logs()

Logs

public Logs(int initialCapacity)
Method Detail

add

public void add(Log log)
Parameters:
log -

clear

public void clear()

copy

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

Returns:
a shallow copy of the current object.

findAfter

public Logs findAfter(org.joda.time.DateTime date)
Parameters:
level -
Returns:

findBefore

public Logs findBefore(org.joda.time.DateTime date)
Parameters:
level -
Returns:

findByDetails

public Logs findByDetails(java.lang.String pattern)
Parameters:
level -
Returns:

findByEvent

public Logs findByEvent(java.lang.String pattern)
Parameters:
level -
Returns:

findByLevel

public Logs findByLevel(Log.Level level)
Parameters:
level -
Returns:

first

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

getByIndex

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

isEmpty

public boolean isEmpty()
Returns:

isNotEmpty

public boolean isNotEmpty()
Returns:

iterator

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

lastest

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

lastId

public long lastId()
Returns:

reverse

public Logs reverse()
Returns:

size

public int size()
Returns:

sortByDate

public Logs sortByDate()
Returns:

sortById

public Logs sortById()
Returns: