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