mirror of
https://github.com/macocianradu/javaGUItoolkit.git
synced 2026-03-18 13:40:04 +00:00
moved create thread in window constructor, added point2 hashcode added gridpanel without merge
26 lines
471 B
Java
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();
|
|
}
|
|
}
|