Class PropertyUtil


  • public class PropertyUtil
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean propertyAsBoolean​(java.util.Map<java.lang.String,​java.lang.String> properties, java.lang.String property, boolean defaultValue)  
      static double propertyAsDouble​(java.util.Map<java.lang.String,​java.lang.String> properties, java.lang.String property, double defaultValue)  
      static int propertyAsInt​(java.util.Map<java.lang.String,​java.lang.String> properties, java.lang.String property, int defaultValue)  
      static long propertyAsLong​(java.util.Map<java.lang.String,​java.lang.String> properties, java.lang.String property, long defaultValue)  
      static java.lang.String propertyAsString​(java.util.Map<java.lang.String,​java.lang.String> properties, java.lang.String property, java.lang.String defaultValue)  
      • Methods inherited from class java.lang.Object

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

      • propertyAsBoolean

        public static boolean propertyAsBoolean​(java.util.Map<java.lang.String,​java.lang.String> properties,
                                                java.lang.String property,
                                                boolean defaultValue)
      • propertyAsDouble

        public static double propertyAsDouble​(java.util.Map<java.lang.String,​java.lang.String> properties,
                                              java.lang.String property,
                                              double defaultValue)
      • propertyAsInt

        public static int propertyAsInt​(java.util.Map<java.lang.String,​java.lang.String> properties,
                                        java.lang.String property,
                                        int defaultValue)
      • propertyAsLong

        public static long propertyAsLong​(java.util.Map<java.lang.String,​java.lang.String> properties,
                                          java.lang.String property,
                                          long defaultValue)
      • propertyAsString

        public static java.lang.String propertyAsString​(java.util.Map<java.lang.String,​java.lang.String> properties,
                                                        java.lang.String property,
                                                        java.lang.String defaultValue)