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
|
|
@ -27,11 +27,10 @@
|
|||
*/
|
||||
package mage.view;
|
||||
|
||||
import java.io.Serializable;
|
||||
import mage.ConditionalMana;
|
||||
import mage.players.ManaPool;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
|
|
@ -88,30 +87,4 @@ public class ManaPoolView implements Serializable {
|
|||
return colorless;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(final Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
final ManaPoolView that = (ManaPoolView) o;
|
||||
|
||||
if (getRed() != that.getRed()) return false;
|
||||
if (getGreen() != that.getGreen()) return false;
|
||||
if (getBlue() != that.getBlue()) return false;
|
||||
if (getWhite() != that.getWhite()) return false;
|
||||
if (getBlack() != that.getBlack()) return false;
|
||||
return getColorless() == that.getColorless();
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = getRed();
|
||||
result = 31 * result + getGreen();
|
||||
result = 31 * result + getBlue();
|
||||
result = 31 * result + getWhite();
|
||||
result = 31 * result + getBlack();
|
||||
result = 31 * result + getColorless();
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue