org.kinsources.kiwa.agora
Class TopicIdIndex

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

public class TopicIdIndex
extends java.lang.Object
implements java.lang.Iterable<Topic>

The IdTopicIndex class represents an Topic index.

Author:
christian.momon@devinsy.fr

Constructor Summary
TopicIdIndex()
           
 
Method Summary
 void clear()
           
 Topic getById(long key)
           
 boolean isEmpty()
           
 boolean isNotEmpty()
           
 java.util.Iterator<Topic> iterator()
           
 java.util.Set<java.lang.Long> keys()
           
 Topic put(Topic source)
           
 void put(Topics source)
           
 void rebuild(Topics source)
           
 void remove(Topic topic)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopicIdIndex

public TopicIdIndex()
Method Detail

clear

public void clear()

getById

public Topic getById(long key)
Parameters:
id -
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>
Returns:

keys

public java.util.Set<java.lang.Long> keys()
Returns:

put

public Topic put(Topic source)

put

public void put(Topics source)

rebuild

public void rebuild(Topics source)
Parameters:
source -

remove

public void remove(Topic topic)
Parameters:
wire -

size

public int size()
Returns: