@Test public void testFloatParseNonDefaultSuccess() { float num = NumberParser.parseFloat("0.0", 1.0f); assertEquals(0.0f, num, 0); }
public static Float parseFloat(final String str) { if (null != str) { try { return new Float(Float.parseFloat(str.trim())); } catch (final Exception e) { } } return null; }
NumberParser { public static Float parseFloat(final String str) { if (null != str) { try { return new Float(Float.parseFloat(str.trim())); } catch (final Exception e) { } } return null; } }
NumberParser { public static Float parseFloat(final String str) { if (null != str) { try { return new Float(Float.parseFloat(str.trim())); } catch (final Exception e) { } } return null; } private  NumberParser(); }
NumberParser { public static Float parseFloat(final String str) { if (null != str) { try { return new Float(Float.parseFloat(str.trim())); } catch (final Exception e) { } } return null; } private  NumberParser(); static Long parseLong(final String str); static Integer parseInt(final String str); static Float parseFloat(final String str); static float parseFloat(final String str, final float def); static long parseLong(final String str, final long def); }
NumberParser { public static Float parseFloat(final String str) { if (null != str) { try { return new Float(Float.parseFloat(str.trim())); } catch (final Exception e) { } } return null; } private  NumberParser(); static Long parseLong(final String str); static Integer parseInt(final String str); static Float parseFloat(final String str); static float parseFloat(final String str, final float def); static long parseLong(final String str, final long def);  }