package c20110812.model; public class Cell { private int x; private int y; public Cell() { } public Cell(int x, int y) { this.x=x; this.y=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 String toString() { return "Cell [x=" + x + ", 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(obj instanceof Cell) { Cell other = (Cell)obj; return (other.getX() == this.x) && (other.y == this.y); } return false; } }
最近下载更多
ClydeSon LV5
2023年12月27日
微信网友_6699076084797440 LV7
2023年10月30日
tx1121 LV14
2023年4月9日
liangge2115 LV27
2022年12月24日
smyinger LV1
2022年7月12日
wddd1121 LV3
2022年4月8日
闫小玥 LV8
2021年12月22日
396261 LV1
2021年12月7日
luoshun LV3
2021年11月23日
hahhah LV1
2021年2月22日
最近浏览更多
ClydeSon LV5
2023年12月27日
1112WHQ LV7
2023年11月3日
微信网友_6699076084797440 LV7
2023年10月30日
wangjialiang1 LV17
2023年8月20日
17683946472 LV9
2023年6月8日
小安同学 LV7
2023年5月11日
tx1121 LV14
2023年4月9日
wind12
2023年3月26日
暂无贡献等级
MrReady LV14
2023年2月5日
理工铝孩 LV1
2022年12月20日