@Test void shouldReturnHashCode() { FloatHashStep<TestData> hashStep = new FloatHashStep<>(TestData::getValue); int result = hashStep.hash(new TestData(1337.0f)); assertThat(result) .isEqualTo(Float.hashCode(1337.0f)); }
@Override public int hash(T object) { return Float.hashCode(valueExtractor.applyAsFloat(object)); }
FloatHashStep implements HashStep<T> { @Override public int hash(T object) { return Float.hashCode(valueExtractor.applyAsFloat(object)); } }
FloatHashStep implements HashStep<T> { @Override public int hash(T object) { return Float.hashCode(valueExtractor.applyAsFloat(object)); } FloatHashStep(ToFloatFunction<? super T> valueExtractor); }
FloatHashStep implements HashStep<T> { @Override public int hash(T object) { return Float.hashCode(valueExtractor.applyAsFloat(object)); } FloatHashStep(ToFloatFunction<? super T> valueExtractor); @Override int hash(T object); }
FloatHashStep implements HashStep<T> { @Override public int hash(T object) { return Float.hashCode(valueExtractor.applyAsFloat(object)); } FloatHashStep(ToFloatFunction<? super T> valueExtractor); @Override int hash(T object);  }