Class StringConverterImpl
java.lang.Object
com.atlassian.jira.issue.customfields.converters.StringConverterImpl
- All Implemented Interfaces:
StringConverter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
convertNullToEmpty
(String value) Returns Empty String if the passed value is null, else returns the original value.This method is a no-op, but I guess it was included for consistency with other Converters.Just turns null into an empty string.
-
Constructor Details
-
StringConverterImpl
public StringConverterImpl()
-
-
Method Details
-
getString
Description copied from interface:StringConverter
Just turns null into an empty string.- Specified by:
getString
in interfaceStringConverter
- Parameters:
value
- The String value to check for null.- Returns:
- Empty String if the passed value is null, else returns the original value.
-
getObject
Description copied from interface:StringConverter
This method is a no-op, but I guess it was included for consistency with other Converters.- Specified by:
getObject
in interfaceStringConverter
- Parameters:
stringValue
- the stringValue to do absolutely nothing with, and just return as is.- Returns:
- The exact same object that you gave me.
-
convertNullToEmpty
Returns Empty String if the passed value is null, else returns the original value.- Parameters:
value
- The String value to check for null.- Returns:
- Empty String if the passed value is null, else returns the original value.
-