comparison flys-backend/src/main/java/de/intevation/flys/importer/ImportPosition.java @ 185:a60edcfe5f53

Added new helper models for import. flys-backend/trunk@1503 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 17 Mar 2011 16:12:39 +0000
parents
children cf8cbcb6a10d
comparison
equal deleted inserted replaced
184:4ab2c3bd474c 185:a60edcfe5f53
1 package de.intevation.flys.importer;
2
3 public class ImportPosition
4 {
5 protected String value;
6
7 public ImportPosition() {
8 }
9
10 public ImportPosition(String value) {
11 this.value = value;
12 }
13
14 public String getValue() {
15 return value;
16 }
17
18 public void setValue(String value) {
19 this.value = value;
20 }
21
22 @Override
23 public boolean equals(Object other) {
24 if (other == this) return true;
25 if (!(other instanceof ImportPosition)) return false;
26 return value.equals(((ImportPosition)other).value);
27 }
28
29 @Override
30 public int hashCode() {
31 return value.hashCode();
32 }
33 }
34 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
35

http://dive4elements.wald.intevation.org