@Test public void testPredicateTest() { final Path t = new Path("/f", EnumSet.of(Path.Type.file)); assertTrue(new CaseInsensitivePathPredicate(t).test(new Path("/f", EnumSet.of(Path.Type.file)))); assertTrue(new CaseInsensitivePathPredicate(t).test(new Path("/F", EnumSet.of(Path.Type.file)))); assertFalse(new CaseInsensitivePathPredicate(t).test(new Path("/f/a", EnumSet.of(Path.Type.file)))); assertFalse(new CaseInsensitivePathPredicate(t).test(new Path("/f", EnumSet.of(Path.Type.directory)))); }
@Override public boolean test(final Path test) { return this.equals(new CaseInsensitivePathPredicate(test)); }
CaseInsensitivePathPredicate implements CacheReference<Path> { @Override public boolean test(final Path test) { return this.equals(new CaseInsensitivePathPredicate(test)); } }
CaseInsensitivePathPredicate implements CacheReference<Path> { @Override public boolean test(final Path test) { return this.equals(new CaseInsensitivePathPredicate(test)); } CaseInsensitivePathPredicate(final Path file); }
CaseInsensitivePathPredicate implements CacheReference<Path> { @Override public boolean test(final Path test) { return this.equals(new CaseInsensitivePathPredicate(test)); } CaseInsensitivePathPredicate(final Path file); @Override boolean equals(final Object o); @Override int hashCode(); @Override boolean test(final Path test); @Override String toString(); }
CaseInsensitivePathPredicate implements CacheReference<Path> { @Override public boolean test(final Path test) { return this.equals(new CaseInsensitivePathPredicate(test)); } CaseInsensitivePathPredicate(final Path file); @Override boolean equals(final Object o); @Override int hashCode(); @Override boolean test(final Path test); @Override String toString();  }