|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.forum.nntp.spi.PeekIterator
com.jivesoftware.forum.nntp.spi.FNameFilterIterator
public class FNameFilterIterator
Filters forums in the underlying forumIterator by name. Some news listing commands include name matching patterns or distribution lists (matching name prefixes) that reduces the number of forums listed.
Constructor Summary | |
---|---|
FNameFilterIterator(java.util.Iterator forumIterator,
NewsGroupFilter ngFilter)
Create a new iterator wrapping the given one that filters out newsgroups that match the given filter. |
Method Summary | |
---|---|
boolean |
hasNext()
Return true if there is a next forum with an NNTP name that matches the news group name matching filter. |
java.lang.Object |
next()
Return the next forum in the iterator who's NNTP name matches this iterator's filter. |
Methods inherited from class com.jivesoftware.forum.nntp.spi.PeekIterator |
---|
peek, remove |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FNameFilterIterator(java.util.Iterator forumIterator, NewsGroupFilter ngFilter)
forumIterator
- the iterator of forums that must be filtered.ngFilter
- the filter containing the names to remove.Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator
hasNext
in class PeekIterator
public java.lang.Object next() throws java.util.NoSuchElementException
next
in interface java.util.Iterator
next
in class PeekIterator
java.util.NoSuchElementException
- if the iterator has no more elements.
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |