org.kinsources.kiwa.agora
Class Topics
java.lang.Object
org.kinsources.kiwa.agora.Topics
- All Implemented Interfaces:
- java.lang.Iterable<Topic>
public class Topics
- extends java.lang.Object
- implements java.lang.Iterable<Topic>
- Author:
- christian.momon@devinsy.fr
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Topics
public Topics()
Topics
public Topics(int initialCapacity)
add
public void add(Topic topic)
- Parameters:
log
-
clear
public void clear()
copy
public Topics copy()
- This methods returns a shallow copy of the current object.
- Returns:
- a shallow copy of the current object.
first
public Topics first(int targetCount)
- Parameters:
targetCount
-
- Returns:
getByIndex
public Topic getByIndex(int index)
- Parameters:
index
-
- Returns:
isEmpty
public boolean isEmpty()
- Returns:
isNotEmpty
public boolean isNotEmpty()
- Returns:
iterator
public java.util.Iterator<Topic> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<Topic>
remove
public void remove(Topic topic)
- Parameters:
id
-
reverse
public Topics reverse()
- Returns:
size
public int size()
- Returns:
sortById
public Topics sortById()
- Returns:
sortByLatestMessage
public Topics sortByLatestMessage()
- Returns:
sortBySticky
public Topics sortBySticky()
- Returns: