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
Modifier and TypeMethodDescriptionboolean
Typesafe Getter for the Date represented by the provided key.Typesafe Getter for the Date represented by the provided key.Typesafe Getter for the Long represented by the provided key.Typesafe Getter for the Double represented by the provided key.Typesafe Getter for the Long represented by the provided key.Typesafe Getter for the Long represented by the provided key.Get a map of all parameters, including string, long, and date.Typesafe Getter for the String represented by the provided key.Typesafe Getter for the String represented by the provided key.int
hashCode()
boolean
isEmpty()
toString()
-
Constructor Details
-
JobParametersEvent
public JobParametersEvent() -
JobParametersEvent
-
-
Method Details
-
getLong
Typesafe Getter for the Long represented by the provided key.- Parameters:
key
- The key to get a value for- Returns:
- The
Long
value
-
getLong
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
Typesafe Getter for the String represented by the provided key.- Parameters:
key
- The key to get a value for- Returns:
- The
String
value
-
getString
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
Typesafe Getter for the Long represented by the provided key.- Parameters:
key
- The key to get a value for- Returns:
- The
Double
value
-
getDouble
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
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
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
-