@Test public void sameMethodDifferentPrefixShouldBeDifferent() { PrefixedSimpleKey prefixedSimpleKey = new PrefixedSimpleKey("prefix", "setX", "x"); PrefixedSimpleKey prefixedSimpleKey2 = new PrefixedSimpleKey("prefix2", "setX", "x"); Assertions.assertThat(prefixedSimpleKey).isNotEqualTo(prefixedSimpleKey2); Assertions.assertThat(prefixedSimpleKey.hashCode()).isNotEqualTo(prefixedSimpleKey2.hashCode()); }
@Override public final int hashCode() { return this.hashCode; }
PrefixedSimpleKey implements Serializable { @Override public final int hashCode() { return this.hashCode; } }
PrefixedSimpleKey implements Serializable { @Override public final int hashCode() { return this.hashCode; } PrefixedSimpleKey(String prefix, String methodName, Object... elements); }
PrefixedSimpleKey implements Serializable { @Override public final int hashCode() { return this.hashCode; } PrefixedSimpleKey(String prefix, String methodName, Object... elements); @Override boolean equals(Object other); @Override final int hashCode(); @Override String toString(); }
PrefixedSimpleKey implements Serializable { @Override public final int hashCode() { return this.hashCode; } PrefixedSimpleKey(String prefix, String methodName, Object... elements); @Override boolean equals(Object other); @Override final int hashCode(); @Override String toString();  }