Class PropertiesHelper


  • public class PropertiesHelper
    extends Object
    Contains helper methods for Properties
    • Constructor Detail

      • PropertiesHelper

        public PropertiesHelper()
    • Method Detail

      • getSubProperties

        public static Properties getSubProperties​(Properties properties,
                                                  String keyPrefix)
        Returns a new properties object with the sub-properties of the given properties For example, if there are the sub properties: "a.b.c=1", "a.b.d=2" and "a.b.e=3", and the keyPrefix is "a.b.", the resulting properties will be: "c=1", "d=2" and "e=3".
      • toString

        public static String toString​(Properties properties)
        Returns the properties as string