Revert "Added hashCode and equal to main server objects"

This reverts commit 27a454f042.
This commit is contained in:
magenoxx 2017-04-21 20:43:32 +03:00
parent 5d2c210d36
commit ee7026f71d
14 changed files with 31 additions and 614 deletions

View file

@ -1,11 +1,10 @@
package mage.view;
import mage.cards.Card;
import mage.game.command.Emblem;
import java.io.Serializable;
import java.util.List;
import java.util.UUID;
import mage.cards.Card;
import mage.game.command.Emblem;
/**
* @author noxx
@ -55,31 +54,4 @@ public class EmblemView implements CommandObjectView, Serializable {
public List<String> getRules() {
return rules;
}
@Override
public boolean equals(final Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
final EmblemView that = (EmblemView) o;
if (!getId().equals(that.getId())) return false;
if (getName() != null ? !getName().equals(that.getName()) : that.getName() != null)
return false;
if (getExpansionSetCode() != null ? !getExpansionSetCode().equals(that
.getExpansionSetCode()) : that.getExpansionSetCode() != null)
return false;
return getRules() != null ? getRules().equals(that.getRules()) : that.getRules() == null;
}
@Override
public int hashCode() {
int result = getId().hashCode();
result = 31 * result + (getName() != null ? getName().hashCode() : 0);
result = 31 * result + (getExpansionSetCode() != null ? getExpansionSetCode().hashCode()
: 0);
result = 31 * result + (getRules() != null ? getRules().hashCode() : 0);
return result;
}
}