|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprefuse.data.util.SortedTupleIterable<T>
public class SortedTupleIterable<T extends Tuple<?>>
Iterator that provides a sorted iteration over a set of tuples.
Constructor Summary | |
---|---|
SortedTupleIterable(java.lang.Iterable<T> iter,
java.util.Comparator<? super T> c)
Create a new SortedTupleIterator that sorts tuples in the given iterator using the given comparator. |
|
SortedTupleIterable(java.lang.Iterable<T> iter,
int size,
java.util.Comparator<? super T> c)
Create a new SortedTupleIterator that sorts tuples in the given iterator using the given comparator. |
Method Summary | |
---|---|
void |
init(java.lang.Iterable<T> iterable,
java.util.Comparator<? super T> c)
Initialize this iterator for the given source iterator and comparator. |
java.util.Iterator<T> |
iterator()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SortedTupleIterable(java.lang.Iterable<T> iter, java.util.Comparator<? super T> c)
iter
- the source iterator of tuplesc
- the comparator to use for sortingpublic SortedTupleIterable(java.lang.Iterable<T> iter, int size, java.util.Comparator<? super T> 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.lang.Iterable<T> iterable, java.util.Comparator<? super T> c)
iterable
- the source iterator of tuplesc
- the comparator to use for sortingpublic java.util.Iterator<T> iterator()
iterator
in interface java.lang.Iterable<T extends Tuple<?>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |