package worm1;

public class Node {
	private int x;
	private int y;
	
	
	
	public Node() {
	}
	
	public Node(int x, int y) {
		this.x = x;
		this.y = y;
	}
	
	public String toString() {
		return "(" + x + "," + y + ")";
	}

	public int getX() {
		return x;
	}
	public void setX(int x) {
		this.x = x;
	}
	public int getY() {
		return y;
	}
	public void setY(int y) {
		this.y = y;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + x;
		result = prime * result + y;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Node other = (Node) obj;
		if (x != other.x)
			return false;
		if (y != other.y)
			return false;
		return true;
	}
	
	
	
	
}
最近下载更多
ClydeSon  LV5 2023年12月27日
微信网友_6699076084797440  LV7 2023年10月30日
林间听风  LV10 2022年5月26日
WuYonJun  LV1 2021年9月25日
qsyqa0  LV6 2021年9月4日
1450747406  LV9 2021年8月15日
chance_jcpasd  LV2 2021年6月6日
dengge123  LV13 2021年6月3日
ly1091471466  LV2 2020年10月29日
nicomaki  LV1 2020年5月30日
最近浏览更多
ClydeSon  LV5 2023年12月27日
1112WHQ  LV7 2023年11月3日
微信网友_6699076084797440  LV7 2023年10月30日
jiemomo  LV12 2023年10月19日
wty1234  LV2 2023年6月20日
小安同学  LV7 2023年5月11日
暂无贡献等级
微信网友_5992582549164032  LV6 2023年2月21日
3174233007 2022年12月19日
暂无贡献等级
FXX123456  LV2 2022年12月7日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友