public class PropsWorker.Props
extends java.lang.Object
Constructor and Description |
---|
Props() |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getBooleanProperty(java.lang.String prop)
Return a named system property as a
Boolean value. |
java.lang.Double |
getDoubleProperty(java.lang.String prop)
Return a named system property as a
Double value. |
java.lang.Long |
getLongProperty(java.lang.String prop)
Return a named system property as a
Long value. |
java.lang.String |
getStringProperty(java.lang.String prop)
Return a named system property as a string value.
|
boolean |
isProperty(java.lang.String prop)
Determines if a named system property exists or not.
|
public boolean isProperty(java.lang.String prop)
prop
- The system property to lookup.true
if a system property of the specified
name exists, false
otherwise.public java.lang.String getStringProperty(java.lang.String prop)
prop
- The system property to lookup.null
if
no such property exists.public java.lang.Double getDoubleProperty(java.lang.String prop) throws java.lang.NumberFormatException
Double
value.prop
- The system property to lookup.null
if
no such property exists.java.lang.NumberFormatException
public java.lang.Long getLongProperty(java.lang.String prop) throws java.lang.NumberFormatException
Long
value.prop
- The system property to lookup.null
if
no such property exists.java.lang.NumberFormatException
public java.lang.Boolean getBooleanProperty(java.lang.String prop) throws java.lang.NumberFormatException
Boolean
value.prop
- The system property to lookup.null
if
no such property exists.java.lang.NumberFormatException