@Test public void hexadecimal_values_test() { assertThat(LiteralUtils.longLiteralValue("0x1F")).isEqualTo(31); assertThat(LiteralUtils.longLiteralValue("0x1_F")).isEqualTo(31); assertThat(LiteralUtils.longLiteralValue("0X1F")).isEqualTo(31); assertThat(LiteralUtils.longLiteralValue("0X1_F")).isEqualTo(31); }
public static long longLiteralValue(String literalValue) { String value = literalValue.replace("_", ""); if (value.startsWith("0b") || value.startsWith("0B")) { return Long.parseUnsignedLong(value.substring(2), 2); } return Long.decode(value); }
LiteralUtils { public static long longLiteralValue(String literalValue) { String value = literalValue.replace("_", ""); if (value.startsWith("0b") || value.startsWith("0B")) { return Long.parseUnsignedLong(value.substring(2), 2); } return Long.decode(value); } }
LiteralUtils { public static long longLiteralValue(String literalValue) { String value = literalValue.replace("_", ""); if (value.startsWith("0b") || value.startsWith("0B")) { return Long.parseUnsignedLong(value.substring(2), 2); } return Long.decode(value); } private  LiteralUtils(); }
LiteralUtils { public static long longLiteralValue(String literalValue) { String value = literalValue.replace("_", ""); if (value.startsWith("0b") || value.startsWith("0B")) { return Long.parseUnsignedLong(value.substring(2), 2); } return Long.decode(value); } private  LiteralUtils(); static long longLiteralValue(String literalValue); }
LiteralUtils { public static long longLiteralValue(String literalValue) { String value = literalValue.replace("_", ""); if (value.startsWith("0b") || value.startsWith("0B")) { return Long.parseUnsignedLong(value.substring(2), 2); } return Long.decode(value); } private  LiteralUtils(); static long longLiteralValue(String literalValue);  }