|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lmu.ifi.dbs.elki.result.MultiResult
public class MultiResult
MultiResult is a result collection class.
Field Summary | |
---|---|
private ArrayList<Result> |
results
Store the actual results |
Constructor Summary | |
---|---|
MultiResult()
Constructor |
|
MultiResult(ArrayList<Result> results)
Constructor |
Method Summary | ||
---|---|---|
void |
addResult(Result r)
Add a new result to the object |
|
|
filterResults(Class<C> restrictionClass)
Return only results of the given restriction class |
|
|
getFirstFilteredResult(Class<C> restrictionClass)
Return first results of the given restriction class |
|
ArrayList<Result> |
getResults()
Retrieve result array. |
|
void |
prependResult(Result r)
Insert a new result at the beginning of the results list |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private ArrayList<Result> results
Constructor Detail |
---|
public MultiResult(ArrayList<Result> results)
results
- Array to use for results.public MultiResult()
Method Detail |
---|
public ArrayList<Result> getResults()
public void addResult(Result r)
r
- new resultpublic void prependResult(Result r)
r
- new resultpublic <C> ArrayList<C> filterResults(Class<C> restrictionClass)
C
- restrictionClass
-
public <C> C getFirstFilteredResult(Class<C> restrictionClass)
C
- restrictionClass
-
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |