@Override
    public boolean equals(final Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }

        final Position other = (Position) obj;
        if (this.xCoord == null) {
            if (other.xCoord != null) {
                return false;
            }
        } else if (!this.xCoord.equals(other.xCoord)) {
            return false;
        }

        if (this.yCoord == null) {
            if (other.yCoord != null) {
                return false;
            }
        } else if (!this.yCoord.equals(other.yCoord)) {
            return false;
        }

        return true;
    }