Signed-off-by:Roland Häder <roland@mxchange.org>
// Return list iterator
return map.entrySet().iterator();
}
+
+ /**
+ * Converts null to empty string or leaves original string.
+ *
+ * @param str Any string
+ * @return Empty string if null or original string
+ */
+ protected String convertNullToEmpty (final String str) {
+ // Trace message
+ this.getLogger().trace(MessageFormat.format("str={0}", str));
+
+ // Is it null?
+ if (str == null) {
+ // Return empty string
+ return "";
+ }
+
+ // Trace message
+ this.getLogger().trace(MessageFormat.format("str={0} - EXIT!", str));
+
+ // Return it
+ return str;
+ }
}