org.kinsources.kiwa.sciboard
Class Comments

java.lang.Object
  extended by org.kinsources.kiwa.sciboard.Comments
All Implemented Interfaces:
java.lang.Iterable<Comment>

public class Comments
extends java.lang.Object
implements java.lang.Iterable<Comment>

Author:
christian.momon@devinsy.fr

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

Constructor Detail

Comments

public Comments()

Comments

public Comments(int initialCapacity)
Method Detail

add

public void add(Comment source)
Parameters:
log -

clear

public void clear()

copy

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

Returns:
a shallow copy of the current object.

first

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

getByIndex

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

isEmpty

public boolean isEmpty()
Returns:

isNotEmpty

public boolean isNotEmpty()
Returns:

iterator

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

last

public Comment last()
Returns:

lastId

public long lastId()
Returns:

remove

public void remove(Comment message)
Parameters:
id -

reverse

public Comments reverse()
Returns:

size

public int size()
Returns: