@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; }
@Override public int hashCode() { int result = account != null ? account.hashCode() : 0; result = 31 * result + (role != null ? role.hashCode() : 0); return result; }