@Test public void testGetInteger() { assertThat(typedProperties.getTypedProperty("integer", Integer.class)).isEqualTo(1234); }
<T> T getTypedProperty(String key, Class<T> type) { String value = properties.getProperty(key); if (Strings.isNullOrEmpty(value)) { return null; } return convert(key, value, type); }
TypedProperties { <T> T getTypedProperty(String key, Class<T> type) { String value = properties.getProperty(key); if (Strings.isNullOrEmpty(value)) { return null; } return convert(key, value, type); } }
TypedProperties { <T> T getTypedProperty(String key, Class<T> type) { String value = properties.getProperty(key); if (Strings.isNullOrEmpty(value)) { return null; } return convert(key, value, type); } TypedProperties(@Nonnull Properties properties); }
TypedProperties { <T> T getTypedProperty(String key, Class<T> type) { String value = properties.getProperty(key); if (Strings.isNullOrEmpty(value)) { return null; } return convert(key, value, type); } TypedProperties(@Nonnull Properties properties);  }
TypedProperties { <T> T getTypedProperty(String key, Class<T> type) { String value = properties.getProperty(key); if (Strings.isNullOrEmpty(value)) { return null; } return convert(key, value, type); } TypedProperties(@Nonnull Properties properties);   }