Code example for Set

Methods: containssize

0
                .put("foo", "abc") 
                .put("foo.bar", "def") 
                .put("foo.baz", "ghi").build(); 
 
        Set<String> names = settings.names();
        assertThat(names.size(), equalTo(2));
        assertTrue(names.contains("bar"));
        assertTrue(names.contains("foo"));
 
        Settings fooSettings = settings.getAsSettings("foo"); 
        names = fooSettings.names();
        assertThat(names.size(), equalTo(2));
        assertTrue(names.contains("bar"));
        assertTrue(names.contains("baz"));
 
    } 
}