Package com.complexible.common.base
Class SystemUtil
java.lang.Object
com.complexible.common.base.SystemUtil
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 TypeMethodDescriptionstatic StringgetProperty(String theProperty, String theDefault) static booleangetPropertyAsBoolean(String theProperty, boolean theDefault) static doublegetPropertyAsDouble(String theProperty, double theDefault) static intgetPropertyAsInt(String theProperty, int theDefault) static longgetPropertyAsLong(String theProperty, long theDefault) static <T extends Number>
TgetPropertyAsNumber(String theProperty, Function<String, T> theParser, T theDefault)
-
Method Details
-
getPropertyAsBoolean
-
getPropertyAsInt
-
getPropertyAsLong
-
getPropertyAsDouble
-
getPropertyAsNumber
-
getProperty
-