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 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)