Class VectornumericElementsSet
- java.lang.Object
-
- cern.nxcals.api.backport.domain.core.metadata.VectornumericElementsSet
-
- All Implemented Interfaces:
java.io.Serializable
public class VectornumericElementsSet extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VectornumericElementsSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addVectornumericElements(java.sql.Timestamp validSinceUTC, VectornumericElements elements)
Adds the given VectornumericElements object to the VectornumericElementsSet.java.util.Set<java.sql.Timestamp>
getTimestamps()
Gets the Set of UTC Timestamps which indicate the time when corresponding VectornumericElements became valid.java.util.Map<java.sql.Timestamp,VectornumericElements>
getVectornumericElements()
VectornumericElements
getVectornumericElements(java.sql.Timestamp referenceTimeUTC)
Gets the VectornumericElements (if any) that were valid at the given UTC reference time.int
size()
-
-
-
Method Detail
-
addVectornumericElements
public void addVectornumericElements(java.sql.Timestamp validSinceUTC, VectornumericElements elements)
Adds the given VectornumericElements object to the VectornumericElementsSet.- Parameters:
validSinceUTC
- - The Timestamp identifying the UTC time since when the accompanying VectornumericElements are valid.elements
- - The VectornumericElements to be added to this VectornumericElementsSet.
-
getVectornumericElements
public java.util.Map<java.sql.Timestamp,VectornumericElements> getVectornumericElements()
- Returns:
- - a Map of all VectornumericElements in the VectornumericElementsSet. The keys of the Map are the UTC Timestamps which indicate the time when corresponding VectornumericElements became valid.
-
getVectornumericElements
public VectornumericElements getVectornumericElements(java.sql.Timestamp referenceTimeUTC)
Gets the VectornumericElements (if any) that were valid at the given UTC reference time.- Parameters:
referenceTimeUTC
- - the UTC reference time for which corresponding VectornumericElements should be returned.- Returns:
- - the VectornumericElements (if any) that were valid at the given UTC reference time.
-
size
public int size()
- Returns:
- - the number of VectornumericElements in this VectornumericElementsSet
-
getTimestamps
public java.util.Set<java.sql.Timestamp> getTimestamps()
Gets the Set of UTC Timestamps which indicate the time when corresponding VectornumericElements became valid.- Returns:
- - the UTC Timestamps which indicate the time when corresponding VectornumericElements became valid.
-
-