Added toString

The default toString method resolves the address of the Memory, this is more useful.
This commit is contained in:
Pandafuchs 2019-02-02 12:10:46 +01:00 committed by GitHub
parent 6fc93cfeff
commit 22b7cf1d05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,4 +34,9 @@ public class HPoint {
HPoint p = (HPoint) o; HPoint p = (HPoint) o;
return this.x == p.getX() && this.y == p.getY() && this.z == p.getZ(); return this.x == p.getX() && this.y == p.getY() && this.z == p.getZ();
} }
@Override
public String toString() {
return "(" + this.getX() + "," + this.getY() + "," + this.getZ() + ")";
}
} }