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 LV14
2021年6月3日
ly1091471466 LV2
2020年10月29日
nicomaki LV1
2020年5月30日
最近浏览更多
vincemokea LV9
8月26日
y1214435276 LV9
1月23日
源123123 LV1
2024年12月25日
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日
微信网友_6448323394179072
2023年4月25日
暂无贡献等级

