@Test void shouldReturnHashCodeOfDelegate() { DelegatingHashStep<String> hashStep = new DelegatingHashStep<>(value -> 1337); int result = hashStep.hash("test"); assertThat(result) .isEqualTo(1337); }
@Override public int hash(T object) { return delegate.applyAsInt(object); }
DelegatingHashStep implements HashStep<T> { @Override public int hash(T object) { return delegate.applyAsInt(object); } }
DelegatingHashStep implements HashStep<T> { @Override public int hash(T object) { return delegate.applyAsInt(object); } DelegatingHashStep(ToIntFunction<? super T> delegate); }
DelegatingHashStep implements HashStep<T> { @Override public int hash(T object) { return delegate.applyAsInt(object); } DelegatingHashStep(ToIntFunction<? super T> delegate); @Override int hash(T object); }
DelegatingHashStep implements HashStep<T> { @Override public int hash(T object) { return delegate.applyAsInt(object); } DelegatingHashStep(ToIntFunction<? super T> delegate); @Override int hash(T object);  }