org.kinsources.kiwa.agora
Class Topics

java.lang.Object
  extended by 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

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

Constructor Detail

Topics

public Topics()

Topics

public Topics(int initialCapacity)
Method Detail

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: