@Test public void testPredicateVersionIdDirectory() { final Path t = new Path("/f", EnumSet.of(Path.Type.directory), new PathAttributes().withVersionId("1")); assertTrue(new DefaultPathPredicate(t).test(t)); assertTrue(new DefaultPathPredicate(t).test(new Path("/f", EnumSet.of(Path.Type.directory), new PathAttributes().withVersionId("1")))); assertTrue(new DefaultPathPredicate(t).test(new Path("/f", EnumSet.of(Path.Type.directory), new PathAttributes().withVersionId("2")))); }
@Override public boolean test(final Path test) { return this.equals(new DefaultPathPredicate(test)); }
DefaultPathPredicate implements CacheReference<Path> { @Override public boolean test(final Path test) { return this.equals(new DefaultPathPredicate(test)); } }
DefaultPathPredicate implements CacheReference<Path> { @Override public boolean test(final Path test) { return this.equals(new DefaultPathPredicate(test)); } DefaultPathPredicate(final Path file); }
DefaultPathPredicate implements CacheReference<Path> { @Override public boolean test(final Path test) { return this.equals(new DefaultPathPredicate(test)); } DefaultPathPredicate(final Path file); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); @Override boolean test(final Path test); }
DefaultPathPredicate implements CacheReference<Path> { @Override public boolean test(final Path test) { return this.equals(new DefaultPathPredicate(test)); } DefaultPathPredicate(final Path file); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); @Override boolean test(final Path test);  }