@Test public void shouldThrowWhenWronglyKeyAssignedToNonString() { thrown.expect(ClassCastException.class); thrown.expectMessage(containsString(Integer.class.getName())); xprops.setProperty("bar", ""); final Integer ignored = xprops.getObject("bar"); }
@Nullable public <T> T getObject(@Nonnull final String key) { return getObjectOrDefault(key, null); }
XProperties extends OrderedProperties { @Nullable public <T> T getObject(@Nonnull final String key) { return getObjectOrDefault(key, null); } }
XProperties extends OrderedProperties { @Nullable public <T> T getObject(@Nonnull final String key) { return getObjectOrDefault(key, null); } XProperties();  XProperties(@Nonnull final Map<String, String> initial); }
XProperties extends OrderedProperties { @Nullable public <T> T getObject(@Nonnull final String key) { return getObjectOrDefault(key, null); } XProperties();  XProperties(@Nonnull final Map<String, String> initial); @Nonnull static XProperties from(@Nonnull @NonNull final String absolutePath); void register(@Nonnull final String prefix,
            @Nonnull final Conversion<?, ? extends Exception> factory); @Override synchronized void load(@Nonnull final Reader reader); @Override synchronized void load(final InputStream inStream); @Nullable @Override String getProperty(final String key); @Nullable @Override synchronized Object get(final Object key); @Nullable T getObject(@Nonnull final String key); @Nullable @SuppressWarnings("unchecked") T getObjectOrDefault(@Nonnull final String key,
            @Nullable final T defaultValue); }
XProperties extends OrderedProperties { @Nullable public <T> T getObject(@Nonnull final String key) { return getObjectOrDefault(key, null); } XProperties();  XProperties(@Nonnull final Map<String, String> initial); @Nonnull static XProperties from(@Nonnull @NonNull final String absolutePath); void register(@Nonnull final String prefix,
            @Nonnull final Conversion<?, ? extends Exception> factory); @Override synchronized void load(@Nonnull final Reader reader); @Override synchronized void load(final InputStream inStream); @Nullable @Override String getProperty(final String key); @Nullable @Override synchronized Object get(final Object key); @Nullable T getObject(@Nonnull final String key); @Nullable @SuppressWarnings("unchecked") T getObjectOrDefault(@Nonnull final String key,
            @Nullable final T defaultValue);  }