Class PropertyUtils

java.lang.Object
org.opendaylight.yangtools.util.PropertyUtils

public final class PropertyUtils extends Object
Provides utilities for system properties.
Author:
Thomas Pantelis
  • Method Details

    • getIntSystemProperty

      public static int getIntSystemProperty(String propName, int defaultValue)
      Obtains the given property from the System properties and returns as an int. If the property is not found the specified default value is returned. If the property value can't be parsed to an int, a warning is logged and the default value is returned.
      Parameters:
      propName - the name of the property to get
      defaultValue - the default value
      Returns:
      the System property as an int or the defaultValue if not found.