PrefixPattern implements RestrictionPattern { @Override public int hashCode() { return prefixes.hashCode(); } PrefixPattern(@NotNull Iterable<String> prefixes); @Override boolean matches(@NotNull Tree tree, @Nullable PropertyState property); @Override boolean matches(@NotNull String path); @Override boolean matches(); @Override int hashCode(); @Override String toString(); @Override boolean equals(Object obj);  }
@Test public void testHashCode() { assertEquals(prefixes.hashCode(), pattern.hashCode()); }