Class PropertiesHelper


  • public final class PropertiesHelper
    extends java.lang.Object
    Contains helper-methods to handle instances of Properties.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Map<java.lang.String,​java.lang.String> propertiesToCaseInsensitiveMap​(java.util.Properties properties)
      Converts the specified properties instance to a map.
      static java.util.Map<java.lang.String,​java.lang.String> propertiesToMap​(java.util.Properties properties)
      Converts the specified properties instance to a map.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • propertiesToMap

        public static java.util.Map<java.lang.String,​java.lang.String> propertiesToMap​(java.util.Properties properties)
        Converts the specified properties instance to a map. The returned map will be an instance of HashMap.
        Parameters:
        properties - properties to convert
        Returns:
        map with all properties
      • propertiesToCaseInsensitiveMap

        public static java.util.Map<java.lang.String,​java.lang.String> propertiesToCaseInsensitiveMap​(java.util.Properties properties)
        Converts the specified properties instance to a map. The returned map will be an instance of CaseInsensitiveMap.
        Parameters:
        properties - properties to convert
        Returns:
        map with all properties