public final class PropertiesUtil extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
getPropertyValue(Properties props,
String name,
boolean defaultValue) |
static Collection<String> |
getPropertyValue(Properties properties,
String propertyName,
Collection<String> defaultValue)
Retrieves a property containing a comma separated list of values, trim them and return them as a Collection of
String.
|
static float |
getPropertyValue(Properties properties,
String name,
float defaultValue) |
static int |
getPropertyValue(Properties props,
String name,
int defaultValue) |
static long |
getPropertyValue(Properties properties,
String name,
long defaultValue) |
public static Collection<String> getPropertyValue(Properties properties, String propertyName, Collection<String> defaultValue)
properties
- propertyName
- defaultValue
- public static int getPropertyValue(Properties props, String name, int defaultValue)
public static boolean getPropertyValue(Properties props, String name, boolean defaultValue)
public static float getPropertyValue(Properties properties, String name, float defaultValue)
public static long getPropertyValue(Properties properties, String name, long defaultValue)
Copyright © 2008–2018. All rights reserved.