VariantEffectFilter implements VariantFilter { @Override public int hashCode() { int hash = 7; hash = 37 * hash + Objects.hashCode(VariantEffectFilter.filterType); hash = 37 * hash + Objects.hashCode(this.offTargetVariantTypes); return hash; } VariantEffectFilter(Set<VariantEffect> notWanted); Set<VariantEffect> getOffTargetVariantTypes(); @Override FilterType getFilterType(); @Override FilterResult runFilter(VariantEvaluation variantEvaluation); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testHashCode() { VariantEffectFilter anotherTargetFilter = new VariantEffectFilter(offTargetVariantEffects); assertThat(instance.hashCode(), equalTo(anotherTargetFilter.hashCode())); }