@Test public void testIsDecimalDiscriminated() { Assert.assertTrue(NumericLiteralSupport.isDecimalDiscriminated("dddddddd")); Assert.assertTrue(NumericLiteralSupport.isDecimalDiscriminated("DDDDDDDD")); Assert.assertFalse(NumericLiteralSupport.isDecimalDiscriminated("Bar")); Assert.assertFalse(NumericLiteralSupport.isDecimalDiscriminated("3")); }
public static boolean isDecimalDiscriminated(String literalValue) { int length = literalValue.length(); if (length < 2) { return false; } char lastChar = literalValue.charAt(length - 1); return (lastChar == 'd' || lastChar == 'D'); }
NumericLiteralSupport { public static boolean isDecimalDiscriminated(String literalValue) { int length = literalValue.length(); if (length < 2) { return false; } char lastChar = literalValue.charAt(length - 1); return (lastChar == 'd' || lastChar == 'D'); } }
NumericLiteralSupport { public static boolean isDecimalDiscriminated(String literalValue) { int length = literalValue.length(); if (length < 2) { return false; } char lastChar = literalValue.charAt(length - 1); return (lastChar == 'd' || lastChar == 'D'); } private  NumericLiteralSupport(); }
NumericLiteralSupport { public static boolean isDecimalDiscriminated(String literalValue) { int length = literalValue.length(); if (length < 2) { return false; } char lastChar = literalValue.charAt(length - 1); return (lastChar == 'd' || lastChar == 'D'); } private  NumericLiteralSupport(); static String stripDiscriminator(String literalValue); static boolean isHexLiteral(String numericLiteral); static boolean hasHexIndicator(String literalValue); static BigDecimal parseBigDecimal(Object baseValue); static boolean isDecimalDiscriminated(String literalValue); static boolean isFloatDiscriminated(String literalValue); }
NumericLiteralSupport { public static boolean isDecimalDiscriminated(String literalValue) { int length = literalValue.length(); if (length < 2) { return false; } char lastChar = literalValue.charAt(length - 1); return (lastChar == 'd' || lastChar == 'D'); } private  NumericLiteralSupport(); static String stripDiscriminator(String literalValue); static boolean isHexLiteral(String numericLiteral); static boolean hasHexIndicator(String literalValue); static BigDecimal parseBigDecimal(Object baseValue); static boolean isDecimalDiscriminated(String literalValue); static boolean isFloatDiscriminated(String literalValue); static final String FLOAT_DISCRIMINATOR; static final String DECIMAL_DISCRIMINATOR; }