/** * Converts the argument to a {@link String}. * * @throws NullPointerException * if the argument is {@code null}. */ public String toString(Map<String, Object> args, String key) { Object value = args.get(key); return toString(value, key); }
/** * Converts the argument to a {@link String}. * * @return the {@link String} or {@code null} if the argument doesn't * exists. */ public String toStringNull(Map<String, Object> args, String key) { Object value = args.get(key); if (value == null) { return null; } return toString(value, key); }