public class TypedProperties extends Properties implements Serializable
Properties.defaults| Constructor and Description |
|---|
TypedProperties() |
TypedProperties(Properties defaults) |
| Modifier and Type | Method and Description |
|---|---|
static TypedProperties |
fromMap(Map<?,?> items)
This method is introduced to get rid of the scala compile error:
|
boolean |
getBoolean(String property) |
boolean |
getBoolean(String property,
boolean defaultValue) |
double |
getDouble(String property) |
double |
getDouble(String property,
double defaultValue) |
int |
getInteger(String property) |
int |
getInteger(String property,
int defaultValue) |
long |
getLong(String property) |
long |
getLong(String property,
long defaultValue) |
Option<String> |
getNonEmptyStringOpt(String property,
String defaultValue) |
String |
getProperty(String key) |
String |
getString(String property) |
String |
getString(String property,
String defaultValue) |
List<String> |
getStringList(String property,
String delimiter,
List<String> defaultVal) |
static void |
putAll(TypedProperties props,
Map<?,?> items)
This method is introduced to get rid of the scala compile error:
|
void |
setPropertyIfNonNull(String key,
Object value) |
getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNamesclear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, valuespublic TypedProperties()
public TypedProperties(Properties defaults)
public String getProperty(String key)
getProperty in class Propertiespublic Option<String> getNonEmptyStringOpt(String property, String defaultValue)
public List<String> getStringList(String property, String delimiter, List<String> defaultVal)
public int getInteger(String property)
public int getInteger(String property, int defaultValue)
public long getLong(String property)
public long getLong(String property, long defaultValue)
public boolean getBoolean(String property)
public boolean getBoolean(String property, boolean defaultValue)
public double getDouble(String property)
public double getDouble(String property, double defaultValue)
public static TypedProperties fromMap(Map<?,?> items)
ambiguous reference to overloaded definition,
both method putAll in class Properties of type (x$1: java.util.Map[_, _])Unit
and method putAll in class Hashtable of type (x$1: java.util.Map[_ <: Object, _ <: Object])Unit
match argument types (java.util.HashMap[Nothing,Nothing])
properties.putAll(new java.util.HashMap())
items - The new items to putpublic static void putAll(TypedProperties props, Map<?,?> items)
ambiguous reference to overloaded definition,
both method putAll in class Properties of type (x$1: java.util.Map[_, _])Unit
and method putAll in class Hashtable of type (x$1: java.util.Map[_ <: Object, _ <: Object])Unit
match argument types (java.util.HashMap[Nothing,Nothing])
properties.putAll(new java.util.HashMap())
props - The propertiesitems - The new items to putCopyright © 2024 The Apache Software Foundation. All rights reserved.