it.geosolutions.tools.commons.system
Class Property
java.lang.Object
it.geosolutions.tools.commons.system.Property
public final class Property
- extends Object
|
Method Summary |
static Integer |
getIntProperty(String arg)
Parse the systemProperty searching for the passed arg string
if it is found try parse its value returning an integer value. |
static Integer |
setIntProperty(String property)
Return the Integer value of the passed property logging
accordingly. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Property
public Property()
getIntProperty
public static Integer getIntProperty(String arg)
throws NullPointerException
- Parse the systemProperty searching for the passed arg string
if it is found try parse its value returning an integer value.
If it is not found return NULL.
- Parameters:
arg - the system property to parse
- Returns:
- an integer corresponding to the value of the property
- Throws:
NullPointerException - if passed arg is null
setIntProperty
public static Integer setIntProperty(String property)
- Return the Integer value of the passed property logging
accordingly. Use this function if you do not want to handle
Exceptions.
- Parameters:
property - the string key representing the wanted value.
- Returns:
- an Integer representing the value or null if it is
unavailable.
- See Also:
Property.getIntProperty()
Copyright © 2011-2012 GeoSolutions. All Rights Reserved.