Class Utils


  • public class Utils
    extends Object
    Utility functions.
    Author:
    jwhite
    • Constructor Detail

      • Utils

        public Utils()
    • Method Detail

      • convertStringAttributesToConstants

        public static void convertStringAttributesToConstants​(String sourceLabel,
                                                              Map<String,​String> stringAttributes,
                                                              Map<String,​Object> fetchResultConstants)
        Converts constants stored in strings.properties to FetchResults constants. Keys are prefix with the source label in order to avoid collisions. Values are converted to doubles when possible to allows the to be used by the ExpressionEngine.
      • fillMissingValues

        public static void fillMissingValues​(FetchResults fetchResults,
                                             List<Source> sources)
        Enrich the fetchResults with NaN values for all sources which do not have values in the fetchResults.
        Parameters:
        fetchResults -
        sources -