Back to project page blocks-game.
The source code is released under:
Apache License
If you think the Android project blocks-game listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package cz.kotu.grids; /*from w ww . j ava 2 s . co m*/ /** * @author Kotuc * Immutable */ public final class LinPos extends Pos { public final int i; public LinPos(int x, int y, int i) { super(x, y); this.i = i; } @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final LinPos other = (LinPos) obj; if (this.x != other.x) { return false; } if (this.y != other.y) { return false; } if (this.i != other.i) { return false; } return true; } @Override public int hashCode() { int hash = 5; hash = 37 * hash + this.x; hash = 37 * hash + this.y; hash = 37 * hash + this.i; return hash; } }