@Test public void hashCoded() { int cutHashCode = cut.hashCode(); assertThat(cutHashCode, is(not(0))); assertThat(cutHashCode, is(new ClientCredentials("clientId", "clientSecret").hashCode())); assertThat(cutHashCode, is(not(new ClientCredentials("clientId2", "clientSecret").hashCode()))); }
@Override public int hashCode() { return Objects.hash(clientSecret, clientId); }
ClientCredentials { @Override public int hashCode() { return Objects.hash(clientSecret, clientId); } }
ClientCredentials { @Override public int hashCode() { return Objects.hash(clientSecret, clientId); } ClientCredentials(@Nonnull String clientId, @Nonnull String clientSecret); }
ClientCredentials { @Override public int hashCode() { return Objects.hash(clientSecret, clientId); } ClientCredentials(@Nonnull String clientId, @Nonnull String clientSecret); String getSecret(); String getId(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
ClientCredentials { @Override public int hashCode() { return Objects.hash(clientSecret, clientId); } ClientCredentials(@Nonnull String clientId, @Nonnull String clientSecret); String getSecret(); String getId(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }