public class ServiceUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
LIST_SEPARATOR |
| Constructor and Description |
|---|
ServiceUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
getOptionalBooleanProperty(ServiceProperties properties,
String propertyName,
boolean defaultValue) |
static int |
getOptionalDataSizeProperty(ServiceProperties properties,
String propertyName,
int defaultValue)
Get a property which is a number of bytes expressed either as an integer (number of bytes) or an integer followed by K
(number of kilobytes) or an integer followed by M (for megabytes).
|
static int |
getOptionalIntProperty(ServiceProperties properties,
String propertyName,
int defaultValue) |
static long |
getOptionalLongProperty(ServiceProperties properties,
String propertyName,
long defaultValue) |
static String |
getOptionalProperty(ServiceProperties properties,
String propertyName,
String defaultValue) |
static float |
getRequiredFloatProperty(ServiceProperties properties,
String propertyName) |
static int |
getRequiredIntProperty(ServiceProperties properties,
String propertyName) |
static String |
getRequiredProperty(ServiceProperties properties,
String propertyName) |
public static final String LIST_SEPARATOR
public static String getRequiredProperty(ServiceProperties properties, String propertyName)
public static int getRequiredIntProperty(ServiceProperties properties, String propertyName)
public static float getRequiredFloatProperty(ServiceProperties properties, String propertyName)
public static String getOptionalProperty(ServiceProperties properties, String propertyName, String defaultValue)
public static int getOptionalIntProperty(ServiceProperties properties, String propertyName, int defaultValue)
public static long getOptionalLongProperty(ServiceProperties properties, String propertyName, long defaultValue)
public static boolean getOptionalBooleanProperty(ServiceProperties properties, String propertyName, boolean defaultValue)
public static int getOptionalDataSizeProperty(ServiceProperties properties, String propertyName, int defaultValue)
Copyright © 2014–2017. All rights reserved.