|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjparfor.IndexedResult<R>
R
- Type of result the object will contain.public class IndexedResult<R>
Class used by the MultiThreader. Class used to index the results to return them in the same order that they were indexed.
Constructor Summary | |
---|---|
IndexedResult(int index,
R result)
Create the object with the given index and result. |
Method Summary | |
---|---|
int |
compareTo(IndexedResult<R> o)
|
int |
getIndex()
Return the index. |
R |
getResult()
Return the result. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexedResult(int index, R result)
index
- index of the result.result
- result to be returned.Method Detail |
---|
public int getIndex()
public R getResult()
public int compareTo(IndexedResult<R> o)
compareTo
in interface java.lang.Comparable<IndexedResult<R>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |