Package com.complexible.common.base
Class SystemUtil
- java.lang.Object
-
- com.complexible.common.base.SystemUtil
-
public final class SystemUtil extends java.lang.Object
Utility methods for working with
System
, particularly safe, default value supported lookups intoSystem.getProperty(java.lang.String)
and other OS/system level calls.- Since:
- 2.0
- Version:
- 2.0 (0.6.5)
- Author:
- Michael Grove
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getProperty(java.lang.String theProperty, java.lang.String theDefault)
static boolean
getPropertyAsBoolean(java.lang.String theProperty, boolean theDefault)
static int
getPropertyAsInt(java.lang.String theProperty, int theDefault)
static long
getPropertyAsLong(java.lang.String theProperty, long theDefault)
-
-
-
Method Detail
-
getPropertyAsBoolean
public static boolean getPropertyAsBoolean(java.lang.String theProperty, boolean theDefault)
-
getPropertyAsInt
public static int getPropertyAsInt(java.lang.String theProperty, int theDefault)
-
getPropertyAsLong
public static long getPropertyAsLong(java.lang.String theProperty, long theDefault)
-
getProperty
public static java.lang.String getProperty(java.lang.String theProperty, java.lang.String theDefault)
-
-