Class PropertiesUtil


  • public class PropertiesUtil
    extends Object
    Since:
    2.4
    • Constructor Detail

      • PropertiesUtil

        public PropertiesUtil()
    • Method Detail

      • getProperty

        public static final <T> T getProperty​(Class<T> type,
                                              Map<String,​?> properties,
                                              String name,
                                              T def)
      • getPropertyString

        public static final String getPropertyString​(Map<String,​?> properties,
                                                     String name)
      • getPropertyFloat

        public static final float getPropertyFloat​(Map<String,​?> properties,
                                                   String name,
                                                   float def)
      • getPropertyFloat

        public static final float getPropertyFloat​(Map<String,​?> properties,
                                                   String name)
      • getPropertyDouble

        public static final double getPropertyDouble​(Map<String,​?> properties,
                                                     String name,
                                                     double def)
      • getPropertyDouble

        public static final double getPropertyDouble​(Map<String,​?> properties,
                                                     String name)
      • getPropertyInteger

        public static final int getPropertyInteger​(Map<String,​?> properties,
                                                   String name,
                                                   int def)
      • getPropertyInteger

        public static final int getPropertyInteger​(Map<String,​?> properties,
                                                   String name)
      • getPropertyLong

        public static final long getPropertyLong​(Map<String,​?> properties,
                                                 String name,
                                                 long def)
      • getPropertyLong

        public static final long getPropertyLong​(Map<String,​?> properties,
                                                 String name)
      • getPropertyBoolean

        public static final boolean getPropertyBoolean​(Map<String,​?> properties,
                                                       String name,
                                                       boolean def)
      • getPropertyBoolean

        public static final boolean getPropertyBoolean​(Map<String,​?> properties,
                                                       String name)
      • getPropertyBytes

        public static final byte[] getPropertyBytes​(Map<String,​?> properties,
                                                    String name,
                                                    byte[] def)
      • getPropertyBytes

        public static final byte[] getPropertyBytes​(Map<String,​?> properties,
                                                    String name)