public final class KeyValueDataList extends KeyValueData implements Serializable, Iterable<KeyValueData>
KeyValueData.KeyValueDataType| Constructor and Description |
|---|
KeyValueDataList()
Create a KeyValueDataList without a key or a timestamp.
|
KeyValueDataList(long timestamp)
Create a KeyValueDataList with a time stamp.
|
KeyValueDataList(String key)
Create a KeyValueDataList with a key.
|
KeyValueDataList(String key,
long timestamp)
Create a KeyValueDataList with a key and a time stamp.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addData(KeyValueData data)
Add a KeyValueData object to the KeyValueDataList.
|
void |
addData(String key,
Serializable value)
Add a key-value pair to this KeyValueDataList by assigning it the
timestamp of the KeyDataList.
|
void |
addData(String key,
Serializable value,
KeyValueData.KeyValueDataType type)
Add a key-value pair to this KeyValueDataList by assigning it the
timestamp of the KeyDataList.
|
void |
addData(String key,
Serializable value,
long timestamp)
Add a key-value pair with a timestamp to this KeyValueDataList.
|
void |
addData(String key,
Serializable value,
long timestamp,
KeyValueData.KeyValueDataType type)
Add a key-value pair with a timestamp to this KeyValueDataList.
|
List<KeyValueData> |
getListOfKeyValueData()
Get the list of KeyValueData contained in this object.
|
List<KeyValueData> |
getListOfKeyValueData(KeyValueData.KeyValueDataType type)
Get the list of KeyValueData contained in this object for a given type.
|
Iterator<KeyValueData> |
iterator() |
String |
toString() |
getKey, getTimestamp, getType, getValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic KeyValueDataList()
public KeyValueDataList(String key)
key - The list's keypublic KeyValueDataList(String key, long timestamp)
key - The list's keytimestamp - The key-value pair timestamp.public KeyValueDataList(long timestamp)
timestamp - The key-value pair timestamp.public void addData(String key, Serializable value)
key - The key of the pair.value - The value of the pair.public void addData(String key, Serializable value, KeyValueData.KeyValueDataType type)
key - The key of the pair.value - The value of the pair.type - The type of the KeyValueData to add.public void addData(String key, Serializable value, long timestamp)
key - The key of the pair.value - The value of the pair.timestamp - The timestamp in milliseconds associated to the pair.public void addData(String key, Serializable value, long timestamp, KeyValueData.KeyValueDataType type)
key - The key of the pair.value - The value of the pair.timestamp - The timestamp in milliseconds associated to the pair.type - The type of the KeyValueData to add.public List<KeyValueData> getListOfKeyValueData()
public List<KeyValueData> getListOfKeyValueData(KeyValueData.KeyValueDataType type)
type - The KeyValueDataType for which the data is required.public void addData(KeyValueData data)
data - The KeyValueData object to add to the KeyValueDataList.public Iterator<KeyValueData> iterator()
iterator in interface Iterable<KeyValueData>public String toString()
toString in class KeyValueDataCopyright © 2017 LSST. All rights reserved.