Package com.complexible.common.base

# Class SystemUtil

java.lang.Object
com.complexible.common.base.SystemUtil

public final class SystemUtil extends Object

Utility methods for working with `System`, particularly safe, default value supported lookups into `System.getProperty(java.lang.String)` and other OS/system level calls.

Since:
  2.0
Version:
  2.0 (0.6.5)
Author:
  Michael Grove

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static String`
  `getProperty(String theProperty, String theDefault)`
  `static boolean`
  `getPropertyAsBoolean(String theProperty, boolean theDefault)`
  `static double`
  `getPropertyAsDouble(String theProperty, double theDefault)`
  `static int`
  `getPropertyAsInt(String theProperty, int theDefault)`
  `static long`
  `getPropertyAsLong(String theProperty, long theDefault)`
  `static <T extends Number>
  T`
  `getPropertyAsNumber(String theProperty, Function<String,T> theParser, T theDefault)`

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

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

- ## Method Details

  - ### getPropertyAsBoolean

    public static boolean getPropertyAsBoolean(String theProperty, boolean theDefault)

  - ### getPropertyAsInt

    public static int getPropertyAsInt(String theProperty, int theDefault)

  - ### getPropertyAsLong

    public static long getPropertyAsLong(String theProperty, long theDefault)

  - ### getPropertyAsDouble

    public static double getPropertyAsDouble(String theProperty, double theDefault)

  - ### getPropertyAsNumber

    public static <T extends Number> T getPropertyAsNumber(String theProperty, Function<String,T> theParser, T theDefault)

  - ### getProperty

    public static String getProperty(String theProperty, String theDefault)