Class PropertiesUtils

java.lang.Object
com.gigaspaces.internal.utils.PropertiesUtils

public class PropertiesUtils extends Object
Since:
7.0
Author:
Niv Ingberg
  • Constructor Details

    • PropertiesUtils

      protected PropertiesUtils()
  • Method Details

    • get

      public static String get(Properties properties, String propertyName)
    • getBoolean

      public static boolean getBoolean(Properties properties, String propertyName, boolean defaultValue)
    • getShort

      public static short getShort(Properties properties, String propertyName, short defaultValue)
    • getInteger

      public static int getInteger(Properties properties, String propertyName, int defaultValue)
    • getLong

      public static long getLong(Properties properties, String propertyName, long defaultValue)
    • getFloat

      public static float getFloat(Properties properties, String propertyName, float defaultValue)
    • getDouble

      public static double getDouble(Properties properties, String propertyName, double defaultValue)
    • getEnum

      public static <T extends Enum<T>> T getEnum(Properties properties, String propertyName, Class<T> enumType, T defaultValue)
    • fromMap

      public static Properties fromMap(Map<String,String> map)