@Test public void fromFloat() throws IOException { TestHelper.assertXMLEquals( "<meta:user-defined meta:name=\"f\" meta:type=\"float\">123.45</meta:user-defined>", UserDefined.fromFloat("f", 123.45)); }
public static UserDefined fromFloat(final String name, final Number value) { return new UserDefined(name, MetaValueType.FLOAT, value.toString()); }
UserDefined implements XMLConvertible { public static UserDefined fromFloat(final String name, final Number value) { return new UserDefined(name, MetaValueType.FLOAT, value.toString()); } }
UserDefined implements XMLConvertible { public static UserDefined fromFloat(final String name, final Number value) { return new UserDefined(name, MetaValueType.FLOAT, value.toString()); } UserDefined(final String name, final MetaValueType valueType, final String value); }
UserDefined implements XMLConvertible { public static UserDefined fromFloat(final String name, final Number value) { return new UserDefined(name, MetaValueType.FLOAT, value.toString()); } UserDefined(final String name, final MetaValueType valueType, final String value); static UserDefined fromBoolean(final String name, final boolean value); static UserDefined fromDate(final String name, final Date value); static UserDefined fromFloat(final String name, final Number value); static UserDefined fromTime(final String name, final Date value); static UserDefined fromString(final String name, final String value); @Override void appendXMLContent(final XMLUtil util, final Appendable appendable); }
UserDefined implements XMLConvertible { public static UserDefined fromFloat(final String name, final Number value) { return new UserDefined(name, MetaValueType.FLOAT, value.toString()); } UserDefined(final String name, final MetaValueType valueType, final String value); static UserDefined fromBoolean(final String name, final boolean value); static UserDefined fromDate(final String name, final Date value); static UserDefined fromFloat(final String name, final Number value); static UserDefined fromTime(final String name, final Date value); static UserDefined fromString(final String name, final String value); @Override void appendXMLContent(final XMLUtil util, final Appendable appendable);  }