public class ValueConverterUtil extends Object
Constructor and Description |
---|
ValueConverterUtil() |
Modifier and Type | Method and Description |
---|---|
static long |
convertToBytes(String memorySize) |
static long |
convertToBytes(String memorySize,
long defaultValue) |
static long |
convertToMilliseconds(String timeSpan) |
static long |
convertToMilliseconds(String timeSpan,
long defaultValue) |
static int |
safeConvertInteger(String integer,
int defaultValue) |
public static long convertToBytes(String memorySize) throws CoreConfigException
CoreConfigException
public static long convertToBytes(String memorySize, long defaultValue) throws CoreConfigException
CoreConfigException
public static long convertToMilliseconds(String timeSpan) throws CoreConfigException
CoreConfigException
public static long convertToMilliseconds(String timeSpan, long defaultValue) throws CoreConfigException
CoreConfigException
public static int safeConvertInteger(String integer, int defaultValue)
Copyright © 2015. All rights reserved.