예제 #1
0
 @Override
 public boolean equals(Object o) {
   if (this == o) return true;
   if (o == null || getClass() != o.getClass()) return false;
   Player player = (Player) o;
   if (account != null ? !account.equals(player.account) : player.account != null) return false;
   return role == player.role;
 }
예제 #2
0
 @Override
 public int hashCode() {
   int result = account != null ? account.hashCode() : 0;
   result = 31 * result + (role != null ? role.hashCode() : 0);
   return result;
 }