public class

StringConverterImpl

extends Object
implements StringConverter
java.lang.Object
   ↳ com.atlassian.jira.issue.customfields.converters.StringConverterImpl

Summary

Public Constructors
StringConverterImpl()
Public Methods
static String convertNullToEmpty(String value)
Returns Empty String if the passed value is null, else returns the original value.
String getObject(String stringValue)
This method is a no-op, but I guess it was included for consistency with other Converters.
String getString(String value)
Just turns null into an empty string.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.customfields.converters.StringConverter

Public Constructors

public StringConverterImpl ()

Public Methods

public static String convertNullToEmpty (String value)

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.

public String getObject (String stringValue)

This method is a no-op, but I guess it was included for consistency with other Converters.

Parameters
stringValue the stringValue to do absolutely nothing with, and just return as is.
Returns
  • The exact same object that you gave me.

public String getString (String value)

Just turns null into an empty string.

Parameters
value The String value to check for null.
Returns
  • Empty String if the passed value is null, else returns the original value.