Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.nntp.spi
Class FFNGIteratorAdapter

java.lang.Object
  extended by com.jivesoftware.forum.nntp.spi.FFNGIteratorAdapter
All Implemented Interfaces:
java.util.Iterator

public class FFNGIteratorAdapter
extends java.lang.Object
implements java.util.Iterator

Converts an iterator of Forums into an iterator of Newsgroups on a just-in-time basis. This is a convenience so that iterators don't need to be copied into temporary lists.


Constructor Summary
FFNGIteratorAdapter(java.util.Iterator forumIterator)
          Create an iterator of news groups using the forum iterator as a source of group information.
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FFNGIteratorAdapter

public FFNGIteratorAdapter(java.util.Iterator forumIterator)

Create an iterator of news groups using the forum iterator as a source of group information.

Parameters:
forumIterator - the iterator of Forums objects to convert.
Method Detail

remove

public void remove()
Specified by:
remove in interface java.util.Iterator

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.