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)
Deprecated.
|
static Integer |
getInt(String v,
Integer defaultMissing)
Parses v.
|
static Long |
getLong(String v,
Long defaultMissing)
Parses v.
|
static Path |
getPath(String v,
Path 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 unparseable@Deprecated public static File getFile(String v, File defaultMissing)
v
- string to parsedefaultMissing
- value to return if value is null or unparseablegetPath(String, Path)
public static String getString(String v, String defaultMissing)
v
- string to parsedefaultMissing
- value to return if value is nullpublic static Path getPath(String v, Path defaultMissing)
v
- string to parsedefaultMissing
- value to return if value is null or unparseablegetPath(String, Path)
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.