
public final class KeyValueDataList extends KeyValueData implements Serializable, Iterable<KeyValueData>
KeyValueData.KeyValueDataTypeneedsEncoding| Constructor and Description |
|---|
KeyValueDataList()
Create a KeyValueDataList without a key or a timestamp.
|
KeyValueDataList(org.lsst.ccs.utilities.taitime.CCSTimeStamp ccsTimeStamp)
Create a KeyValueDataList with a ccs time stamp.
|
KeyValueDataList(String key)
Create a KeyValueDataList with a key.
|
KeyValueDataList(String key,
org.lsst.ccs.utilities.taitime.CCSTimeStamp ccsTimeStamp)
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,
org.lsst.ccs.utilities.taitime.CCSTimeStamp ccsTimeStamp)
Add a key-value pair with a CCS timestamp to this KeyValueDataList.
|
void |
addData(String key,
Serializable value,
org.lsst.ccs.utilities.taitime.CCSTimeStamp ccsTimeStamp,
KeyValueData.KeyValueDataType type)
Add a key-value pair with a CCS timestamp to this KeyValueDataList.
|
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.
|
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() |
getCCSTimeStamp, getKey, getType, getValue, needsEncoding, updateNeedsEncodingclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic KeyValueDataList()
List<KeyValueData>public KeyValueDataList(String key)
List<KeyValueData>key - The list's keypublic KeyValueDataList(String key, org.lsst.ccs.utilities.taitime.CCSTimeStamp ccsTimeStamp)
List<KeyValueData>key - The list's keyccsTimeStamp - The key-value pair ccsTimeStamp.public KeyValueDataList(org.lsst.ccs.utilities.taitime.CCSTimeStamp ccsTimeStamp)
List<KeyValueData>ccsTimeStamp - The key-value pair ccs 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, org.lsst.ccs.utilities.taitime.CCSTimeStamp ccsTimeStamp)
key - The key of the pair.value - The value of the pair.ccsTimeStamp - The ccsTimeStamp associated to the pair.public void addData(String key, Serializable value, org.lsst.ccs.utilities.taitime.CCSTimeStamp ccsTimeStamp, KeyValueData.KeyValueDataType type)
key - The key of the pair.value - The value of the pair.ccsTimeStamp - The CCS timestamp 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 © 2020 LSST. All rights reserved.