org.kinsources.kiwa.sciboard
Class Comments
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Comments
public Comments()
Comments
public Comments(int initialCapacity)
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: