|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.result.AbstractHierarchicalResult de.lmu.ifi.dbs.elki.result.BasicResult de.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(String name,
String shortname,
Collection<O> col)
Constructor |
|
CollectionResult(String name,
String shortname,
Collection<O> col,
Collection<String> header)
Constructor |
Method Summary | |
---|---|
void |
addHeader(String s)
Add header information |
Collection<String> |
getHeader()
Get header information |
Iterator<O> |
iterator()
Implementation of the IterableResult interface, using the backing collection. |
int |
size()
Get the collection size. |
Methods inherited from class de.lmu.ifi.dbs.elki.result.BasicResult |
---|
getLongName, getShortName |
Methods inherited from class de.lmu.ifi.dbs.elki.result.AbstractHierarchicalResult |
---|
addChildResult, getHierarchy, setHierarchy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.lmu.ifi.dbs.elki.result.Result |
---|
getLongName, getShortName |
Field Detail |
---|
private Collection<O> col
private Collection<String> header
Constructor Detail |
---|
public CollectionResult(String name, String shortname, Collection<O> col, Collection<String> header)
name
- The long name (for pretty printing)shortname
- the short name (for filenames etc.)col
- Collection representedheader
- Auxiliary information for result headerspublic CollectionResult(String name, String shortname, Collection<O> col)
name
- The long name (for pretty printing)shortname
- the short name (for filenames etc.)col
- Collection representedMethod 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()
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |