@Test void shouldReturnHashCode() { CharHashStep<TestData> hashStep = new CharHashStep<>(TestData::getValue); int result = hashStep.hash(new TestData('c')); assertThat(result) .isEqualTo(Character.hashCode('c')); }
@Override public int hash(T object) { return Character.hashCode(valueExtractor.applyAsChar(object)); }
CharHashStep implements HashStep<T> { @Override public int hash(T object) { return Character.hashCode(valueExtractor.applyAsChar(object)); } }
CharHashStep implements HashStep<T> { @Override public int hash(T object) { return Character.hashCode(valueExtractor.applyAsChar(object)); } CharHashStep(ToCharFunction<? super T> valueExtractor); }
CharHashStep implements HashStep<T> { @Override public int hash(T object) { return Character.hashCode(valueExtractor.applyAsChar(object)); } CharHashStep(ToCharFunction<? super T> valueExtractor); @Override int hash(T object); }
CharHashStep implements HashStep<T> { @Override public int hash(T object) { return Character.hashCode(valueExtractor.applyAsChar(object)); } CharHashStep(ToCharFunction<? super T> valueExtractor); @Override int hash(T object);  }