GlobPattern implements RestrictionPattern { @Override public int hashCode() { return Objects.hashCode(path, restriction); } private  GlobPattern(@NotNull String path, @NotNull String restriction); @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() { GlobPattern pattern = GlobPattern.create("/a/b/c/d", "/*"); assertEquals(Objects.hashCode("/a/b/c/d", "/*"), pattern.hashCode()); }