Class YaspHeaderImpl

  • All Implemented Interfaces:
    YaspHeader

    public class YaspHeaderImpl
    extends java.lang.Object
    implements YaspHeader
    • Constructor Detail

      • YaspHeaderImpl

        public YaspHeaderImpl()
    • Method Detail

      • getStringData

        public java.lang.String getStringData​(YaspHeaderData data)
        Description copied from interface: YaspHeader
        Retrieve the string data for the given YaspHeaderData.
        Specified by:
        getStringData in interface YaspHeader
        Parameters:
        data - the YaspHeaderData to retrieve
        Returns:
        the value in the current yasp reading or an empty string in case the data was not found
      • getDoubleData

        public java.lang.Double getDoubleData​(YaspHeaderData data)
        Description copied from interface: YaspHeader
        Retrieve the double value for the given YaspHeaderData
        Specified by:
        getDoubleData in interface YaspHeader
        Parameters:
        data - the YaspHeaderData to retrieve
        Returns:
        the double value in the current yasp reading or Double.NaN in case the data was not found
      • addEntry

        public void addEntry​(YaspHeaderData key,
                             java.lang.String value)