@Test void shouldReturnHashCode() { IntHashStep<TestData> hashStep = new IntHashStep<>(TestData::getValue); int result = hashStep.hash(new TestData(1337)); assertThat(result) .isEqualTo(Integer.hashCode(1337)); }
@Override public int hash(T object) { return Integer.hashCode(valueExtractor.applyAsInt(object)); }
IntHashStep implements HashStep<T> { @Override public int hash(T object) { return Integer.hashCode(valueExtractor.applyAsInt(object)); } }
IntHashStep implements HashStep<T> { @Override public int hash(T object) { return Integer.hashCode(valueExtractor.applyAsInt(object)); } IntHashStep(ToIntFunction<? super T> valueExtractor); }
IntHashStep implements HashStep<T> { @Override public int hash(T object) { return Integer.hashCode(valueExtractor.applyAsInt(object)); } IntHashStep(ToIntFunction<? super T> valueExtractor); @Override int hash(T object); }
IntHashStep implements HashStep<T> { @Override public int hash(T object) { return Integer.hashCode(valueExtractor.applyAsInt(object)); } IntHashStep(ToIntFunction<? super T> valueExtractor); @Override int hash(T object);  }