V
- the type of data to be aggregatedpublic abstract class AbstractCollectable<V> extends Object implements Propertied, Collectable<V>
Collectable
storing data in a List
, which can be cleared and replaced by initial values. Implements
Propertied
for the data to be displayed in MASON GUI.Modifier and Type | Class and Description |
---|---|
class |
AbstractCollectable.MyProperties |
Constructor and Description |
---|
AbstractCollectable() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the data contained in this collectable, i.e.
|
protected V |
obtainInitialValue() |
abstract List<V> |
obtainValues()
Obtains values.
|
Properties |
properties() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createWriter, obtainHeaders, toMap
protected V obtainInitialValue()
data
is to be filled when calling clear()
,
default is null
public abstract List<V> obtainValues()
Collectable
Collectable.obtainHeaders()
. Can be written
as a row into a CSV file.obtainValues
in interface Collectable<V>
public void clear()
Collectable
UnsupportedOperationException
.clear
in interface Collectable<V>
public Properties properties()
properties
in interface Propertied