@Test public void testPredicateTest() { final Path t = new Path("/f", EnumSet.of(Path.Type.file)); assertTrue(new DefaultPathPredicate(t).test(t)); assertFalse(new DefaultPathPredicate(t).test(new Path("/f/a", EnumSet.of(Path.Type.file)))); assertFalse(new DefaultPathPredicate(t).test(new Path("/f", EnumSet.of(Path.Type.directory)))); }
@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);  }