O - data typepublic class CollectionResult<O> extends BasicResult implements IterableResult<O>
| Modifier and Type | Field and Description |
|---|---|
private java.util.Collection<O> |
col
The collection represented.
|
private java.util.Collection<java.lang.String> |
header
Meta information (printed into the header)
|
| Constructor and Description |
|---|
CollectionResult(java.lang.String name,
java.lang.String shortname,
java.util.Collection<O> col)
Constructor
|
CollectionResult(java.lang.String name,
java.lang.String shortname,
java.util.Collection<O> col,
java.util.Collection<java.lang.String> header)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addHeader(java.lang.String s)
Add header information
|
java.util.Collection<java.lang.String> |
getHeader()
Get header information
|
java.util.Iterator<O> |
iterator()
Implementation of the
IterableResult interface, using the backing collection. |
int |
size()
Get the collection size.
|
getLongName, getShortNameaddChildResult, getHierarchy, setHierarchyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLongName, getShortNameprivate java.util.Collection<O> col
private java.util.Collection<java.lang.String> header
public CollectionResult(java.lang.String name,
java.lang.String shortname,
java.util.Collection<O> col,
java.util.Collection<java.lang.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(java.lang.String name,
java.lang.String shortname,
java.util.Collection<O> col)
name - The long name (for pretty printing)shortname - the short name (for filenames etc.)col - Collection representedpublic void addHeader(java.lang.String s)
s - Header information stringpublic java.util.Collection<java.lang.String> getHeader()
public java.util.Iterator<O> iterator()
IterableResult interface, using the backing collection.iterator in interface IterableResult<O>iterator in interface java.lang.Iterable<O>public int size()
Copyright © 2019 ELKI Development Team. License information.