List of utility methods to do String Value Of
String[] | valueOfLongToString(long[] values) value Of Long To String String reValue[] = new String[values.length]; for (int i = 0; i < values.length; i++) { reValue[i] = String.valueOf(values[i]); return reValue; |
E | valueOfNullSafe(final Class Returns the enum constant of the specified enum type with the specified name. try { return Enum.valueOf(enumType, name); } catch (final IllegalArgumentException e) { return null; } catch (final NullPointerException e) { return null; |
String | valueOfOrEmptyString(final Object object) Returns with an empty string is the argument is null otherwise returns with String#valueOf(Object) . return null == object ? EMPTY_STRING : String.valueOf(object);
|
String | valueOfString(String str, int len) value Of String StringBuffer sb = new StringBuffer(); for (int i = 0; i < len - str.length(); i++) { sb.append("0"); return (sb.length() == 0) ? (str) : (sb.toString() + str); |
int | ValueOfString(String value) Value Of String if (value.length() == 0) return 0; else return Integer.valueOf(value); |
long[] | valueOfStringToLong(String[] values) value Of String To Long if (null == values) { return new long[0]; long reValue[] = new long[values.length]; for (int i = 0; i < values.length; i++) { try { reValue[i] = Long.parseLong(values[i]); } catch (Exception e) { ... |
boolean | valueOfYesNo(String parameter) value Of Yes No return ("Y".equals(parameter) ? true : false); |