|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object prefuse.data.util.SortedTupleIterator
public class SortedTupleIterator
Iterator that provides a sorted iteration over a set of tuples.
Constructor Summary | |
---|---|
SortedTupleIterator(java.util.Iterator iter,
java.util.Comparator c)
Create a new SortedTupleIterator that sorts tuples in the given iterator using the given comparator. |
|
SortedTupleIterator(java.util.Iterator iter,
int size,
java.util.Comparator c)
Create a new SortedTupleIterator that sorts tuples in the given iterator using the given comparator. |
Method Summary | |
---|---|
boolean |
hasNext()
|
void |
init(java.util.Iterator iter,
java.util.Comparator c)
Initialize this iterator for the given source iterator and comparator. |
java.lang.Object |
next()
|
void |
remove()
Throws an UnsupportedOperationException |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SortedTupleIterator(java.util.Iterator iter, java.util.Comparator c)
iter
- the source iterator of tuplesc
- the comparator to use for sortingpublic SortedTupleIterator(java.util.Iterator iter, int size, java.util.Comparator c)
iter
- the source iterator of tuplessize
- the expected number of tuples in the iteratorc
- the comparator to use for sortingMethod Detail |
---|
public void init(java.util.Iterator iter, java.util.Comparator c)
iter
- the source iterator of tuplesc
- the comparator to use for sortingpublic boolean hasNext()
hasNext
in interface java.util.Iterator
Iterator.hasNext()
public java.lang.Object next()
next
in interface java.util.Iterator
Iterator.next()
public void remove()
remove
in interface java.util.Iterator
java.lang.UnsupportedOperationException
Iterator.remove()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |