@Test public void shouldGetResources() { xprops.setProperty("bar", format("classpath*:%sincluded*.properties", firstPathComponent(pathPrefix))); final List<Resource> resources = xprops.getObject("resource*:bar"); assertThat(resources.size(), is(equalTo(2))); assertThat(resources, tests( "contains resource filename ending with 'included" + ".properties'", r -> r.stream(). map(Resource::getFilename). filter(f -> f.endsWith("included.properties")). findFirst(). isPresent())); assertThat(resources, tests( "contains resource filename ending with 'included2.properties'", r -> r.stream(). map(Resource::getFilename). filter(f -> f.endsWith("included2.properties")). findFirst(). isPresent())); }
@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);  }