org.kinsources.kiwa.actalog
Class EventLogs
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventLogs
public EventLogs()
EventLogs
public EventLogs(EventLogs source)
- This constructor does a shallow copy of parameter.
EventLogs
public EventLogs(int initialCapacity)
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: