@Test public void getFloat_default() { KeyValueDataSet subject = new KeyValueDataSet(); assertEquals(1.1f, subject.getFloat("key", 1.1f), 0.1f); }
@Override public float getFloat(@NonNull String key, float defaultValue) { if (containsKey(key)) { return readValueAsType(key, Float.class, false); } else { return defaultValue; } }
KeyValueDataSet implements KeyValueReader { @Override public float getFloat(@NonNull String key, float defaultValue) { if (containsKey(key)) { return readValueAsType(key, Float.class, false); } else { return defaultValue; } } }
KeyValueDataSet implements KeyValueReader { @Override public float getFloat(@NonNull String key, float defaultValue) { if (containsKey(key)) { return readValueAsType(key, Float.class, false); } else { return defaultValue; } }  }
KeyValueDataSet implements KeyValueReader { @Override public float getFloat(@NonNull String key, float defaultValue) { if (containsKey(key)) { return readValueAsType(key, Float.class, false); } else { return defaultValue; } }  void putBlob(@NonNull String key, byte[] value); void putBoolean(@NonNull String key, boolean value); void putFloat(@NonNull String key, float value); void putInteger(@NonNull String key, int value); void putLong(@NonNull String key, long value); void putString(@NonNull String key, String value); @Override byte[] getBlob(@NonNull String key, byte[] defaultValue); @Override boolean getBoolean(@NonNull String key, boolean defaultValue); @Override float getFloat(@NonNull String key, float defaultValue); @Override int getInteger(@NonNull String key, int defaultValue); @Override long getLong(@NonNull String key, long defaultValue); @Override String getString(@NonNull String key, String defaultValue); @NonNull Map<String, Object> getValues(); Class getType(@NonNull String key); }
KeyValueDataSet implements KeyValueReader { @Override public float getFloat(@NonNull String key, float defaultValue) { if (containsKey(key)) { return readValueAsType(key, Float.class, false); } else { return defaultValue; } }  void putBlob(@NonNull String key, byte[] value); void putBoolean(@NonNull String key, boolean value); void putFloat(@NonNull String key, float value); void putInteger(@NonNull String key, int value); void putLong(@NonNull String key, long value); void putString(@NonNull String key, String value); @Override byte[] getBlob(@NonNull String key, byte[] defaultValue); @Override boolean getBoolean(@NonNull String key, boolean defaultValue); @Override float getFloat(@NonNull String key, float defaultValue); @Override int getInteger(@NonNull String key, int defaultValue); @Override long getLong(@NonNull String key, long defaultValue); @Override String getString(@NonNull String key, String defaultValue); @NonNull Map<String, Object> getValues(); Class getType(@NonNull String key);  }