package org.psjava.ds.math;

public class Vector2D<T> {
	private final T x, y;

	public static <T> Vector2D<T> create(T x, T y) {
		return new Vector2D<T>(x, y);
	}

	private Vector2D(T x, T y) {
		this.x = x;
		this.y = y;
	}

	public T x() {
		return x;
	}

	public T y() {
		return y;
	}
}

@@ -283,11 +283,117 @@
 rn y;%0A%09%7D
+%0A%0A%09@Override%0A%09public String toString() %7B%0A%09%09return getClass().getSimpleName() + %22(%22 + x + %22,%22 + y + %22)%22;%0A%09%7D
 %0A%7D%0A

add toString to debug