@Test public void whenUsingStringGetPathWithStrings_returnsPathWithStrings() { final Path path = new Path("EMIR1/*/EMIR2/*"); final String pathWithValues = path.getPath("A", "B"); assertThat(pathWithValues).isEqualTo("EMIR1/A/EMIR2/B"); }
public String getPath(final Object... objects){ final List<String> pathSegments = getPathSegments(objects); return TextUtils.join("/", pathSegments); }
Path { public String getPath(final Object... objects){ final List<String> pathSegments = getPathSegments(objects); return TextUtils.join("/", pathSegments); } }
Path { public String getPath(final Object... objects){ final List<String> pathSegments = getPathSegments(objects); return TextUtils.join("/", pathSegments); } Path(final String path);  Path(final String... pathSegments); }
Path { public String getPath(final Object... objects){ final List<String> pathSegments = getPathSegments(objects); return TextUtils.join("/", pathSegments); } Path(final String path);  Path(final String... pathSegments); int getPathSegmentCount(); String getMatcherPath(); List<String> getPathSegments(final Object... objects); String getPath(final Object... objects); @Override boolean equals(final Object object); boolean matches(final Uri uri); }
Path { public String getPath(final Object... objects){ final List<String> pathSegments = getPathSegments(objects); return TextUtils.join("/", pathSegments); } Path(final String path);  Path(final String... pathSegments); int getPathSegmentCount(); String getMatcherPath(); List<String> getPathSegments(final Object... objects); String getPath(final Object... objects); @Override boolean equals(final Object object); boolean matches(final Uri uri);  }