From 0ad31dcca37df9891ed5d5b70f12a966fc821c6d Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 3 Dec 2015 04:34:54 +0000 Subject: EiP - 07 --- ws2015/eip/blaetter/07/de/lmu/tcs/Position.java | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 ws2015/eip/blaetter/07/de/lmu/tcs/Position.java (limited to 'ws2015/eip/blaetter/07/de/lmu/tcs/Position.java') diff --git a/ws2015/eip/blaetter/07/de/lmu/tcs/Position.java b/ws2015/eip/blaetter/07/de/lmu/tcs/Position.java new file mode 100644 index 0000000..546da7f --- /dev/null +++ b/ws2015/eip/blaetter/07/de/lmu/tcs/Position.java @@ -0,0 +1,27 @@ +package de.lmu.tcs; + +/** + * Model + * + * Immutable + * + * Created by jost on 24.11.15. + */ +public class Position { + + private final int x; + private final int y; + + public Position(int x, int y) { + this.x = x; + this.y = y; + } + + public int getX() { + return this.x; + } + + public int getY() { + return this.y; + } +} -- cgit v1.2.3