PriorityScoreFilter implements GeneFilter { @Override public int hashCode() { int hash = 7; hash = 17 * hash + Float.floatToIntBits(this.minPriorityScore); hash = 17 * hash + Objects.hashCode(this.priorityType); return hash; } PriorityScoreFilter(PriorityType priorityType, float minPriorityScore); PriorityType getPriorityType(); float getMinPriorityScore(); @Override FilterType getFilterType(); @Override FilterResult runFilter(Gene gene); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testHashCode() { PriorityScoreFilter other = new PriorityScoreFilter(priorityType, minPriorityScore); assertThat(instance.hashCode(), equalTo(other.hashCode())); }