@Test public void testHashcodeCollision() { assertNotEquals( new DefaultPathPredicate( new Path("19", EnumSet.of(Path.Type.file)) ), new DefaultPathPredicate( new Path("0X", EnumSet.of(Path.Type.file)) ) ); assertFalse(new DefaultPathPredicate( new Path("19", EnumSet.of(Path.Type.file)) ).test( new Path("0X", EnumSet.of(Path.Type.file)) )); }
@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);  }