@Test public void testHashCode() { assertEquals(login.hashCode(), user.hashCode()); }
@Override public int hashCode() { return login.hashCode(); }
UserImpl implements User { @Override public int hashCode() { return login.hashCode(); } }
UserImpl implements User { @Override public int hashCode() { return login.hashCode(); } UserImpl(String login);  UserImpl(String login, boolean authenticated);  UserImpl(String login, String realm);  UserImpl(String login, String realm, boolean authenticated);  UserImpl(String login, String realm, String name);  UserImpl(String login, String realm, String name, boolean authenticated);  UserImpl(User user); }
UserImpl implements User { @Override public int hashCode() { return login.hashCode(); } UserImpl(String login);  UserImpl(String login, boolean authenticated);  UserImpl(String login, String realm);  UserImpl(String login, String realm, boolean authenticated);  UserImpl(String login, String realm, String name);  UserImpl(String login, String realm, String name, boolean authenticated);  UserImpl(User user); @Override void setAuthenticated(boolean authenticated); @Override boolean isAuthenticated(); String getLogin(); void setName(String name); String getName(); void setRealm(String realm); String getRealm(); void addPrivateCredentials(Object... credentials); boolean removePrivateCredentials(Object credentials); Set<Object> getPrivateCredentials(); Set<Object> getPrivateCredentials(Class<?> type); void addPublicCredentials(Object... credentials); boolean removePublicCredentials(Object credentials); Set<Object> getPublicCredentials(); Set<Object> getPublicCredentials(Class<?> type); static UserImpl fromXml(Node xml); static UserImpl fromXml(Node xml, XPath xpath); @Override Object clone(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); String toXml(); @Override String getAuthorityType(); @Override String getAuthorityId(); @Override boolean implies(Authority authority); @Override boolean matches(Authority authority); }
UserImpl implements User { @Override public int hashCode() { return login.hashCode(); } UserImpl(String login);  UserImpl(String login, boolean authenticated);  UserImpl(String login, String realm);  UserImpl(String login, String realm, boolean authenticated);  UserImpl(String login, String realm, String name);  UserImpl(String login, String realm, String name, boolean authenticated);  UserImpl(User user); @Override void setAuthenticated(boolean authenticated); @Override boolean isAuthenticated(); String getLogin(); void setName(String name); String getName(); void setRealm(String realm); String getRealm(); void addPrivateCredentials(Object... credentials); boolean removePrivateCredentials(Object credentials); Set<Object> getPrivateCredentials(); Set<Object> getPrivateCredentials(Class<?> type); void addPublicCredentials(Object... credentials); boolean removePublicCredentials(Object credentials); Set<Object> getPublicCredentials(); Set<Object> getPublicCredentials(Class<?> type); static UserImpl fromXml(Node xml); static UserImpl fromXml(Node xml, XPath xpath); @Override Object clone(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); String toXml(); @Override String getAuthorityType(); @Override String getAuthorityId(); @Override boolean implies(Authority authority); @Override boolean matches(Authority authority);  }