Object (Object value) { if (value instanceof Long) { return value + "L"; } else if (value instanceof Short) { return "(short)" + value; } else if (value instanceof Byte) { return "(byte)" + value; } else if (value instanceof String string) { return "\"" + StringUtil.escapeStringCharacters(string) + "\""; } else if (value instanceof Character character) { return "'" + StringUtil.escapeCharCharacters(String.valueOf(character)) + "'"; } return value; }