The list of methods to do Object to String are organized into topic(s).
String
castString(Object val) cast String
try {
return val != null ? val.toString() : "null";
} catch (Exception e) {
return "<ERR: " + e.getMessage() + ">";
String[]
castToStringArray(Object[] array) EPL has embedded cast method, but it doesn't cover arrays
if (array != null) {
String[] retArray = new String[array.length];
int i = 0;
for (Object element : array) {
retArray[i] = element == null ? null : element.toString();
i++;
return retArray;
...
String
objectToString(final Object value) For Visual Studio compatibility.
if (value instanceof Double) {
return doubleToString((Double) value);
} else {
return value.toString();
String
objectToString(Object a_Object) Makes object to string if it is null then empty string "" is returned
Advantage of this is that it is handling nulls correctly
if (a_Object != null) {
return a_Object.toString();
} else {
return "";