List of utility methods to do Number Value Of
int | valueOf(Boolean b) value Of return b == null || !b ? FALSE : TRUE;
|
String | valueOf(boolean b) value Of return String.valueOf(b);
|
Boolean | valueOf(boolean b) value Of return (b ? Boolean.TRUE : Boolean.FALSE);
|
boolean | valueOf(Boolean bool) value Of if (bool == null) { return false; } else { return bool; |
String | valueOf(boolean flag) value Of return flag ? "true" : "false"; |
String | valueOf(boolean tmp) Description of the Method if (tmp) { return "true"; } else { return "false"; |
String | valueOf(Boolean value) Returns the string value of the given boolean. return value != null ? String.valueOf(value) : null;
|
boolean | valueOf(Boolean value) value Of if (value == null) return false; return value.booleanValue(); |
Character | valueOf(char c) This is a performance optimization. return c <= 127 ? charCache[(int) c] : c; |
byte | valueOf(char hexChar) Returns the hex value of the given character hexChar = Character.toLowerCase(hexChar); for (byte i = 0; i < HEX_CHAR_TABLE.length; i++) { if (hexChar == HEX_CHAR_TABLE[i]) { return i; throw new IllegalArgumentException(hexChar + " is not a hex char"); |