QualityFilter implements VariantFilter { @Override public int hashCode() { int hash = 7; hash = 59 * hash + (int) (Double.doubleToLongBits(this.mimimumQualityThreshold) ^ (Double.doubleToLongBits(this.mimimumQualityThreshold) >>> 32)); return hash; } QualityFilter(double mimimumQualityThreshold); double getMimimumQualityThreshold(); @Override FilterType getFilterType(); @Override FilterResult runFilter(VariantEvaluation variantEvaluation); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testHashCode() { VariantFilter qualityFilter = new QualityFilter(MIN_QUAL_THRESHOLD); assertThat(instance.hashCode(), equalTo(qualityFilter.hashCode())); }