public UserInfo createDetails(IUser user) { UserInfo details = (UserInfo) cache.get(user); if (details == null) { details = new UserInfoDetails(user.getOID(), user.getId(), PerformerUtils.getQualifiedName(user)); cache.put(user, details); } return details; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; return user.equals(((UserKey) obj).user); }
@Override public int hashCode() { return 31 + user.hashCode(); }