public class PropertyHelper extends Object
Constructor and Description |
---|
PropertyHelper() |
Modifier and Type | Method and Description |
---|---|
static boolean |
getBoolean(Properties properties,
String name,
boolean defaultValue)
Get boolean property.
|
static org.joda.time.Duration |
getDuration(Properties properties,
String name)
Get duration property.
|
static File |
getFile(Properties properties,
String name)
Get file property.
|
static String |
getString(Properties properties,
String name)
Get string property.
|
static Properties |
merge(Properties first,
Properties second)
Merge properties.
|
public static Properties merge(Properties first, Properties second)
@Nullable public static String getString(Properties properties, String name)
public static boolean getBoolean(Properties properties, String name, boolean defaultValue)
@Nullable public static File getFile(Properties properties, String name)
@Nullable public static org.joda.time.Duration getDuration(Properties properties, String name)
Copyright © 2018–2019 Sonatype, Inc.. All rights reserved.