summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-04-30 15:00:36 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-04-30 15:00:36 +0200
commitdf2a40b16c722f6d8ccc783c24d3b6ca1e5d91c6 (patch)
tree0ca0a506edf25b4ea39bfa9a7862c2235f51a60f /src
parent1a42f934ac381cf3b75225f6fd0d55f7aa6d3d74 (diff)
downloadJRummikub-df2a40b16c722f6d8ccc783c24d3b6ca1e5d91c6.tar
JRummikub-df2a40b16c722f6d8ccc783c24d3b6ca1e5d91c6.zip
Make Position immutable
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@22 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src')
-rw-r--r--src/jrummikub/model/Position.java15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/jrummikub/model/Position.java b/src/jrummikub/model/Position.java
index 5e0198b..595015f 100644
--- a/src/jrummikub/model/Position.java
+++ b/src/jrummikub/model/Position.java
@@ -9,20 +9,17 @@ public class Position {
private float x;
private float y;
- public void setY(float y) {
+ public Position(float x, float y) {
+ this.x = x;
this.y = y;
}
+ public float getX() {
+ return x;
+ }
+
public float getY() {
return y;
}
- public void setX(float x) {
- this.x = x;
- }
-
- public float getX() {
- return x;
- }
-
}