forked from External/mage
Revert "Added hashCode and equal to main server objects"
This reverts commit 27a454f042.
This commit is contained in:
parent
5d2c210d36
commit
ee7026f71d
14 changed files with 31 additions and 614 deletions
|
|
@ -28,12 +28,11 @@
|
|||
|
||||
package mage.view;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.cards.Card;
|
||||
import mage.game.ExileZone;
|
||||
import mage.game.Game;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
|
|
@ -60,24 +59,4 @@ public class ExileView extends CardsView {
|
|||
return id;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(final Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
if (!super.equals(o)) return false;
|
||||
|
||||
final ExileView exileView = (ExileView) o;
|
||||
|
||||
if (!getName().equals(exileView.getName())) return false;
|
||||
return getId().equals(exileView.getId());
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = super.hashCode();
|
||||
result = 31 * result + getName().hashCode();
|
||||
result = 31 * result + getId().hashCode();
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue