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)
Deprecated.
Use
getDouble(java.lang.String, java.lang.Double)
instead. This method will be removed in a future release. |
java.lang.Double |
getDouble(java.lang.String key,
java.lang.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)
Deprecated.
Use
getLong(java.lang.String, java.lang.Long)
instead. This method will be removed in a future release. |
java.lang.Long |
getLong(java.lang.String key,
java.lang.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)
@Nullable public java.lang.Long getLong(java.lang.String key)
key - The key to get a value forLong value or null if the key is absent@Deprecated
public java.lang.Long getLong(java.lang.String key,
long defaultValue)
getLong(java.lang.String, java.lang.Long)
instead. This method will be removed in a future release.key - to return the value fordefaultValue - to return if the value doesn't exist@Nullable
public java.lang.Long getLong(java.lang.String key,
@Nullable
java.lang.Long defaultValue)
key - to return the value fordefaultValue - to return if the value doesn't exist@Nullable public java.lang.String getString(java.lang.String key)
key - The key to get a value forString value or null if the key is absent@Nullable
public java.lang.String getString(java.lang.String key,
@Nullable
java.lang.String defaultValue)
key - to return the value fordefaultValue - to return if the value doesn't exist@Nullable public java.lang.Double getDouble(java.lang.String key)
key - The key to get a value forDouble value or null if the key is absent@Deprecated
public java.lang.Double getDouble(java.lang.String key,
double defaultValue)
getDouble(java.lang.String, java.lang.Double)
instead. This method will be removed in a future release.key - to return the value fordefaultValue - to return if the value doesn't exist@Nullable
public java.lang.Double getDouble(java.lang.String key,
@Nullable
java.lang.Double defaultValue)
key - to return the value fordefaultValue - to return if the value doesn't exist@Nullable public java.util.Date getDate(java.lang.String key)
key - The key to get a value forjava.util.Date value or null if the key
is absent@Nullable
public java.util.Date getDate(java.lang.String key,
@Nullable
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.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Properties toProperties()