|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.result.CollectionResult<O>
O - data typepublic class CollectionResult<O>
Simple 'collection' type of result. For example, a list of NumberVectors.
| Field Summary | |
|---|---|
private Collection<O> |
col
The collection represented. |
private Collection<String> |
header
Meta information (printed into the header) |
| Constructor Summary | |
|---|---|
CollectionResult(Collection<O> col)
Constructor |
|
CollectionResult(Collection<O> col,
Collection<String> header)
Constructor |
|
| Method Summary | |
|---|---|
void |
addHeader(String s)
Add header information |
Collection<String> |
getHeader()
Get header information |
String |
getName()
Get a user-understandable name for this result. |
Iterator<O> |
iterator()
Implementation of the IterableResult interface, using the backing collection. |
int |
size()
Get the collection size. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Collection<O> col
private Collection<String> header
| Constructor Detail |
|---|
public CollectionResult(Collection<O> col,
Collection<String> header)
col - Collection representedheader - Auxiliary information for result headerspublic CollectionResult(Collection<O> col)
col - Collection represented| Method Detail |
|---|
public void addHeader(String s)
s - Header information stringpublic Collection<String> getHeader()
public Iterator<O> iterator()
IterableResult interface, using the backing collection.
iterator in interface IterableResult<O>iterator in interface Iterable<O>public int size()
public String getName()
Result
getName in interface Result
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||