public class JobParameters
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
JobParameters() |
JobParameters(java.util.Map<java.lang.String,JobParameter> parameters) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getDate(java.lang.String key)
Typesafe Getter for the Date represented by the provided key.
|
java.util.Date |
getDate(java.lang.String key,
java.util.Date defaultValue)
Typesafe Getter for the Date represented by the provided key.
|
java.lang.Double |
getDouble(java.lang.String key)
Typesafe Getter for the Long represented by the provided key.
|
java.lang.Double |
getDouble(java.lang.String key,
double defaultValue)
Typesafe Getter for the Double represented by the provided key.
|
java.lang.Long |
getLong(java.lang.String key)
Typesafe Getter for the Long represented by the provided key.
|
java.lang.Long |
getLong(java.lang.String key,
long defaultValue)
Typesafe Getter for the Long represented by the provided key.
|
java.util.Map<java.lang.String,JobParameter> |
getParameters()
Get a map of all parameters, including string, long, and date.
|
java.lang.String |
getString(java.lang.String key)
Typesafe Getter for the String represented by the provided key.
|
java.lang.String |
getString(java.lang.String key,
java.lang.String defaultValue)
Typesafe Getter for the String represented by the provided key.
|
int |
hashCode() |
boolean |
isEmpty() |
java.util.Properties |
toProperties() |
java.lang.String |
toString() |
public JobParameters()
public JobParameters(java.util.Map<java.lang.String,JobParameter> parameters)
public java.lang.Long getLong(java.lang.String key)
key
- The key to get a value forLong
valuepublic java.lang.Long getLong(java.lang.String key, long defaultValue)
key
- to return the value fordefaultValue
- to return if the value doesn't existpublic java.lang.String getString(java.lang.String key)
key
- The key to get a value forString
valuepublic java.lang.String getString(java.lang.String key, java.lang.String defaultValue)
key
- to return the value fordefaultValue
- to return if the value doesn't existpublic java.lang.Double getDouble(java.lang.String key)
key
- The key to get a value forDouble
valuepublic java.lang.Double getDouble(java.lang.String key, double defaultValue)
key
- to return the value fordefaultValue
- to return if the value doesn't existpublic java.util.Date getDate(java.lang.String key)
key
- The key to get a value forjava.util.Date
valuepublic java.util.Date getDate(java.lang.String key, java.util.Date defaultValue)
key
- to return the value fordefaultValue
- to return if the value doesn't existpublic java.util.Map<java.lang.String,JobParameter> getParameters()
public boolean isEmpty()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Properties toProperties()