@Test public void hashCode_providerIdOnly() { ConnectionKey key = new ConnectionKey("provider1", null); assertEquals("provider1".hashCode(), key.hashCode()); }
public int hashCode() { int hashCode = providerId.hashCode(); return providerUserId != null ? hashCode + providerUserId.hashCode() : hashCode; }
ConnectionKey implements Serializable { public int hashCode() { int hashCode = providerId.hashCode(); return providerUserId != null ? hashCode + providerUserId.hashCode() : hashCode; } }
ConnectionKey implements Serializable { public int hashCode() { int hashCode = providerId.hashCode(); return providerUserId != null ? hashCode + providerUserId.hashCode() : hashCode; } ConnectionKey(String providerId, String providerUserId); }
ConnectionKey implements Serializable { public int hashCode() { int hashCode = providerId.hashCode(); return providerUserId != null ? hashCode + providerUserId.hashCode() : hashCode; } ConnectionKey(String providerId, String providerUserId); String getProviderId(); String getProviderUserId(); boolean equals(Object o); int hashCode(); String toString(); }
ConnectionKey implements Serializable { public int hashCode() { int hashCode = providerId.hashCode(); return providerUserId != null ? hashCode + providerUserId.hashCode() : hashCode; } ConnectionKey(String providerId, String providerUserId); String getProviderId(); String getProviderUserId(); boolean equals(Object o); int hashCode(); String toString();  }