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