org.kinsources.kiwa.agora
Class Messages

java.lang.Object
  extended by org.kinsources.kiwa.agora.Messages
All Implemented Interfaces:
java.lang.Iterable<Message>

public class Messages
extends java.lang.Object
implements java.lang.Iterable<Message>

Author:
christian.momon@devinsy.fr

Constructor Summary
Messages()
           
Messages(int initialCapacity)
           
 
Method Summary
 void add(Message message)
           
 void clear()
           
 Messages copy()
          This methods returns a shallow copy of the current object.
 Messages first(int targetCount)
           
 Message getByIndex(int index)
           
 boolean isEmpty()
           
 boolean isNotEmpty()
           
 java.util.Iterator<Message> iterator()
           
 Message last()
           
 void remove(Message message)
           
 Messages reverse()
           
 int size()
           
 Messages sortByDate()
           
 Messages sortById()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Messages

public Messages()

Messages

public Messages(int initialCapacity)
Method Detail

add

public void add(Message message)
Parameters:
log -

clear

public void clear()

copy

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

Returns:
a shallow copy of the current object.

first

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

getByIndex

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

isEmpty

public boolean isEmpty()
Returns:

isNotEmpty

public boolean isNotEmpty()
Returns:

iterator

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

last

public Message last()
Returns:

remove

public void remove(Message message)
Parameters:
id -

reverse

public Messages reverse()
Returns:

size

public int size()
Returns:

sortByDate

public Messages sortByDate()
Returns:

sortById

public Messages sortById()
Returns: