public class PropsUtil extends Object
Constructor and Description |
---|
PropsUtil() |
Modifier and Type | Method and Description |
---|---|
static Boolean |
getBoolean(String v,
Boolean defaultMissing)
Parses v.
|
static File |
getFile(String v,
File defaultMissing)
Parses v.
|
static Integer |
getInt(String v,
Integer defaultMissing)
Parses v.
|
static Long |
getLong(String v,
Long defaultMissing)
Parses v.
|
static String |
getString(String v,
String defaultMissing)
Parses v.
|
public static Boolean getBoolean(String v, Boolean defaultMissing)
v
- string to parsedefaultMissing
- value to return if value is null or unparseablepublic static Integer getInt(String v, Integer defaultMissing)
v
- string to parsedefaultMissing
- value to return if value is null or unparseablepublic static Long getLong(String v, Long defaultMissing)
v
- string to parsedefaultMissing
- value to return if value is null or unparseablepublic static File getFile(String v, File defaultMissing)
v
- string to parsedefaultMissing
- value to return if value is null or unparseableCopyright © 2007-2015 The Apache Software Foundation. All Rights Reserved.