Files
javaGUItoolkit/src/guiTree/Helper/Point2.java
Macocian Adrian Radu 2e4d83085a added key events,
moved create thread in window constructor,
added point2 hashcode
added gridpanel without merge
2020-04-10 17:13:19 +03:00

26 lines
471 B
Java

package guiTree.Helper;
public class Point2<T> {
public T x;
public T y;
public Point2(T x, T y) {
this.x = x;
this.y = y;
}
public boolean equals(Point2<T> point2) {
return x == point2.y && y == point2.y;
}
@Override
public String toString() {
return "Point2 x:" + x + " y: " + y;
}
@Override
public int hashCode() {
return (x.toString() + ", " + y.toString()).hashCode();
}
}