Package com.atlassian.bamboo.collections
Interface ActionParametersMap
- All Known Implementing Classes:
ActionParametersMapImpl,SimpleActionParametersMap
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetBoolean(@Nullable String key) Returns a boolean value from the map of parameters.booleangetBoolean(@Nullable String key, boolean defaultValue) Returns a boolean value from the map of parameters.doubleRetrieve Double value from the map of parameters.getFiles()Returns map of Files uploaded to this form.intRetrieve Integer value from the map of parameters.longRetrieve Long value from the map of parameters.Returns internal map of parameters.@Nullable StringReturns a String value from the map of parameters.@NotNull StringReturns a String value from the map of parmeters.@Nullable String[]getStringArray(@Nullable String key) Returns a String[] value from the map of parameters.Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Method Details
-
getString
Returns a String value from the map of parameters. If the key does not exist in the map, then null is returned.- Parameters:
key- Key of value to be searched in the map- Returns:
- String value of object found or null if not found
-
getString
@NotNull @NotNull String getString(@Nullable @Nullable String key, @NotNull @NotNull String defaultString) Returns a String value from the map of parmeters. If the key does not exist in the map or the value is null then the defaultString is returned.- Parameters:
key- Key of value to be searched in the mapdefaultString- the default string to return if the property does not exist in the map- Returns:
- String value of object found or defaultString if not found
-
getStringArray
Returns a String[] value from the map of parameters. If the key does not exist in the map, then null is returned.- Parameters:
key- Key of value to be searched in the map- Returns:
- String[] value of object found or null if not found
-
getInt
Retrieve Integer value from the map of parameters. If the key does not exist in the map, or is not convertible to Integer then default value is returned.- Parameters:
key- Key of value to be searched in the mapdefaultValue- Default value to be returned if key not found or not convertible to Integer- Returns:
- Value of object found or defaultValue if not convertible to Integer or not found
-
getLong
Retrieve Long value from the map of parameters. If the key does not exist in the map, or is not convertible to Long then default value is returned.- Parameters:
key- Key of value to be searched in the mapdefaultValue- Default value to be returned if key not found or not convertible to Long- Returns:
- Value of object found or defaultValue if not convertible to Long or not found
-
getDouble
Retrieve Double value from the map of parameters. If the key does not exist in the map, or is not convertible to Double then default value is returned.- Parameters:
key- Key of value to be searched in the mapdefaultValue- Default value to be returned if key not found or not convertible to Double- Returns:
- Value of object found or defaultValue if not convertible to Double or not found
-
getBoolean
Returns a boolean value from the map of parameters. If it does not exist in the map, then false is returned- Parameters:
key- Key of value to be searched in the map- Returns:
- True if the value converted to true or false otherwise
-
getBoolean
Returns a boolean value from the map of parameters. If it does not exist in the map, then defaultValue is returned- Parameters:
key- Key of value to be searched in the map- Returns:
- True if the value converted to true, false if the value converted to false, defaultValue otherwise
-
getFiles
Returns map of Files uploaded to this form.- Returns:
- Map of Files uploaded to this form
-
getParameters
Returns internal map of parameters.- Returns:
- Parameters map
-