📄 point.java
字号:
package entity;/** * @author yangan */public class Point { private int xIndex; private int yIndex; public Point(int index, int index2) { super(); xIndex = index; yIndex = index2; } /** * @return Returns the xIndex. * @uml.property name="xIndex" */ public int getXIndex() { return xIndex; } /** * @param xIndex The xIndex to set. * @uml.property name="xIndex" */ public void setXIndex(int index) { xIndex = index; } /** * @return Returns the yIndex. * @uml.property name="yIndex" */ public int getYIndex() { return yIndex; } /** * @param yIndex The yIndex to set. * @uml.property name="yIndex" */ public void setYIndex(int index) { yIndex = index; } @Override public boolean equals(Object obj) { boolean result = false; Point _point; if (obj == this) { result = true; } else { if (obj instanceof Point) { _point = (Point) obj; if ((_point.getXIndex() == this.getXIndex() && (_point .getYIndex() == this.getYIndex()))) { result = true; } } } return result; } @Override public int hashCode() { int result = 31 * this.getXIndex() + this.getYIndex(); return result; } @Override public String toString() { return "Point(" + this.getXIndex() + "," + this.getYIndex() + ")"; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -