Class JobParametersEvent
java.lang.Object
org.springframework.cloud.task.batch.listener.support.JobParametersEvent
This is a JobParametersEvent DTO created so that a
JobParameters
can be serialized into Json
without having to add mixins to an ObjectMapper.- Author:
- Glenn Renfro
-
Constructor Summary
ConstructorsConstructorDescriptionJobParametersEvent
(Map<String, org.springframework.batch.core.JobParameter<?>> jobParameters) -
Method Summary
-
Constructor Details
-
JobParametersEvent
public JobParametersEvent() -
JobParametersEvent
-
-
Method Details
-
getLong
Deprecated.Typesafe Getter for the Long represented by the provided key.- Parameters:
key
- The key to get a value for- Returns:
- The
Long
value
-
getLong
Deprecated.Typesafe Getter for the Long represented by the provided key. If the key does not exist, the default value will be returned.- Parameters:
key
- to return the value fordefaultValue
- to return if the value doesn't exist- Returns:
- the parameter represented by the provided key, defaultValue otherwise.
-
getString
Deprecated.Typesafe Getter for the String represented by the provided key.- Parameters:
key
- The key to get a value for- Returns:
- The
String
value
-
getString
Deprecated.Typesafe Getter for the String represented by the provided key. If the key does not exist, the default value will be returned.- Parameters:
key
- to return the value fordefaultValue
- to return if the value doesn't exist- Returns:
- the parameter represented by the provided key, defaultValue otherwise.
-
getDouble
Deprecated.Typesafe Getter for the Long represented by the provided key.- Parameters:
key
- The key to get a value for- Returns:
- The
Double
value
-
getDouble
Deprecated.Typesafe Getter for the Double represented by the provided key. If the key does not exist, the default value will be returned.- Parameters:
key
- to return the value fordefaultValue
- to return if the value doesn't exist- Returns:
- the parameter represented by the provided key, defaultValue otherwise.
-
getDate
Deprecated.Typesafe Getter for the Date represented by the provided key.- Parameters:
key
- The key to get a value for- Returns:
- The
java.util.Date
value
-
getDate
Deprecated.Typesafe Getter for the Date represented by the provided key. If the key does not exist, the default value will be returned.- Parameters:
key
- to return the value fordefaultValue
- to return if the value doesn't exist- Returns:
- the parameter represented by the provided key, defaultValue otherwise.
-
getParameters
Get a map of all parameters, including string, long, and date.- Returns:
- an unmodifiable map containing all parameters.
-
isEmpty
public boolean isEmpty()- Returns:
- true if the parameters is empty, false otherwise.
-
equals
-
hashCode
public int hashCode() -
toString
-
toProperties
-