@Test public void testGetFloat() { assertThat(params("a", "1").getFloat("a"), equalTo(1f)); assertThat(params("a", "1").getFloat("b"), nullValue()); assertThat(params("a", "1").getFloat("b", 2), equalTo(2f)); }
public final Float getFloat(String name) { return getAndTranslateValue(name, "float", FLOAT, null); }
SingleParams { public final Float getFloat(String name) { return getAndTranslateValue(name, "float", FLOAT, null); } }
SingleParams { public final Float getFloat(String name) { return getAndTranslateValue(name, "float", FLOAT, null); }  }
SingleParams { public final Float getFloat(String name) { return getAndTranslateValue(name, "float", FLOAT, null); }  abstract String getString(String name); abstract Set<String> keys(); final String getString(String name, String defaultValue); final Short getShort(String name); final short getShort(String name, short defaultValue); final Integer getInt(String name); final int getInt(String name, int defaultValue); final Long getLong(String name); final long getLong(String name, long defaultValue); final Float getFloat(String name); final float getFloat(String name, float defaultValue); final Double getDouble(String name); final double getDouble(String name, double defaultValue); final Boolean getBoolean(String name); final boolean getBoolean(String name, boolean defaultValue); }
SingleParams { public final Float getFloat(String name) { return getAndTranslateValue(name, "float", FLOAT, null); }  abstract String getString(String name); abstract Set<String> keys(); final String getString(String name, String defaultValue); final Short getShort(String name); final short getShort(String name, short defaultValue); final Integer getInt(String name); final int getInt(String name, int defaultValue); final Long getLong(String name); final long getLong(String name, long defaultValue); final Float getFloat(String name); final float getFloat(String name, float defaultValue); final Double getDouble(String name); final double getDouble(String name, double defaultValue); final Boolean getBoolean(String name); final boolean getBoolean(String name, boolean defaultValue);  }