|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.dtfj.analyzer.util.DTFJIterator
com.ibm.dtfj.analyzer.util.DTFJSortedIterator
public class DTFJSortedIterator
This class extends the basic capability of DTFJIterator and additionally ensures that the objects are returned in a well defined sort order. The sorting is currently controlled internally and the sort order cannot be changed. Note that this is not optimised for large collections so is ulnlikely to perform well if handed an Iterator over all objects. At present it is aimed at sorting JavaClassloaders and Threads etc.
Field Summary |
---|
Fields inherited from class com.ibm.dtfj.analyzer.util.DTFJIterator |
---|
context, DEFAULT_LIMIT, rawIterator |
Constructor Summary | |
---|---|
DTFJSortedIterator(java.util.Iterator it)
A 'sorted' iterator which has the same semantics as the underlying 'safe' iterator and adds the sorting semantic. |
|
DTFJSortedIterator(java.util.Iterator it,
IAnalyzerContext ctx)
A 'sorted' iterator which has the same semantics as the underlying 'safe' iterator and adds the sorting semantic. |
Method Summary | |
---|---|
boolean |
hasNext()
We override this one just to make it clear that there's no further need to alter the raw iterator semantic since we handled CorruptData when building the collection. |
java.lang.Object |
next()
We override this one just to make it clear that there's no further need to alter the raw iterator semantic since we handled CorruptData when building the collection. |
void |
remove()
(non-Javadoc) |
Methods inherited from class com.ibm.dtfj.analyzer.util.DTFJIterator |
---|
getCorruptObjectCount, getNullCount, handleMoreCorruptObjects, handleMoreNulls |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DTFJSortedIterator(java.util.Iterator it, IAnalyzerContext ctx)
it
- the iterator that we are going to wrapctx
- the current analyzer contextpublic DTFJSortedIterator(java.util.Iterator it)
it
- the iterator that we are going to wrapMethod Detail |
---|
public void remove()
remove
in interface java.util.Iterator
remove
in class DTFJIterator
Iterator.remove()
public boolean hasNext()
hasNext
in interface java.util.Iterator
hasNext
in class DTFJIterator
Iterator.hasNext()
public java.lang.Object next()
next
in interface java.util.Iterator
next
in class DTFJIterator
Iterator.next()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |