Code example for Set

Methods: iteratorsize

0
        assertThat(yamlSuites.containsKey(dirName), equalTo(true));
        assertSingleFile(yamlSuites.get(dirName), dirName, fileName);
    } 
 
    private static void assertSingleFile(Set<File> files, String dirName, String fileName) {
        assertThat(files.size(), equalTo(1));
        File file = files.iterator().next();
        assertThat(file.getName(), equalTo(fileName));
        assertThat(file.getParentFile().getName(), equalTo(dirName));
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java