public class NextSupplier
extends java.lang.Object
Constructor | Description |
---|---|
NextSupplier() |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
uk.ac.starlink.ttools.plot2.config.ConfigKey[] |
getKeys() |
Returns the keys managed by this supplier.
|
<T> T |
getNextValue(uk.ac.starlink.ttools.plot2.config.ConfigKey<T> key) |
Returns the next unused value to use for a given key.
|
<T> void |
putValues(uk.ac.starlink.ttools.plot2.config.ConfigKey<T> key,
T[] values) |
Adds a key to be managed by this supplier, and provides a set of
values to be used for it.
|
public <T> void putValues(uk.ac.starlink.ttools.plot2.config.ConfigKey<T> key, T[] values)
key
- key to be managed by this suppliervalues
- list of distinct values to provide successive defaults
for key
public uk.ac.starlink.ttools.plot2.config.ConfigKey[] getKeys()
public <T> T getNextValue(uk.ac.starlink.ttools.plot2.config.ConfigKey<T> key)
key
- one of the keys managed by this supplierCopyright ? 2003-2018 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.