org.apache.solr.util

## Class PropertiesUtil

- java.lang.Object
- - org.apache.solr.util.PropertiesUtil

-     public class PropertiesUtil
      extends Object

  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
    Constructor and Description
    `PropertiesUtil()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static String` | `substituteProperty(String value, Properties coreProperties)`
    `static boolean` | `toBoolean(String value)`
    `static Integer` | `toInteger(String value, Integer defValue)` Parse the given String value as an integer.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PropertiesUtil

          public PropertiesUtil()

  - ### Method Detail

    - #### substituteProperty

          public static String substituteProperty(String value,
                                                  Properties coreProperties)

    - #### toInteger

          public static Integer toInteger(String value,
                                          Integer defValue)

      Parse the given String value as an integer. If the string cannot be parsed, returns the default
      Parameters:
        `value` - the value to parse
        `defValue` - the default to return if the value cannot be parsed
      Returns:
        an integer version of the passed in value

    - #### toBoolean

          public static boolean toBoolean(String value)

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.