MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / makeVariant

Method makeVariant

files/Directories.java:15–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13 static List<String> parts =
14 Arrays.asList("foo", "bar", "baz", "bag");
15 static Path makeVariant() {
16 Collections.rotate(parts, 1);
17 return Paths.get("test", String.join(sep, parts));
18 }
19 static void refreshTestDir() throws Exception {
20 if(Files.exists(test))
21 RmDir.rmdir(test);

Callers 2

mainMethod · 0.95
populateTestDirMethod · 0.95

Calls 3

rotateMethod · 0.80
joinMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected