@Override public boolean equals(Object obj) { // Fast checks if (this == obj) return true; if (obj == null) return false; // Only compare objects of similar type if (obj instanceof PlayerInfoData) { PlayerInfoData other = (PlayerInfoData) obj; return profile.equals(other.profile) && latency == other.latency && gameMode == other.gameMode && displayName.equals(other.displayName); } return false; }