Package org.apache.solr.common.util
Class PropertiesUtil
java.lang.Object
org.apache.solr.common.util.PropertiesUtil
Breaking out some utility methods into a separate class as part of SOLR-4196. These utils have
nothing to do with the DOM (they came from DomUtils) and it's really confusing to see them in
something labeled DOM
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringsubstitute(String value, Function<String, String> coreProperties) static StringsubstituteProperty(String value, Properties coreProperties) static booleanstatic IntegerParse the given String value as an integer.
-
Constructor Details
-
PropertiesUtil
public PropertiesUtil()
-
-
Method Details
-
substituteProperty
-
substitute
-
toInteger
Parse the given String value as an integer. If the string cannot be parsed, returns the default- Parameters:
value- the value to parsedefValue- the default to return if the value cannot be parsed- Returns:
- an integer version of the passed in value
-
toBoolean
-