comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/StaticMorphoWidthCacheKey.java @ 5764:7ac111db8a07

Model, factory, facet and static artifact for morphologic width.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 18 Apr 2013 14:14:15 +0200
parents
children
comparison
equal deleted inserted replaced
5763:dd652fcc9f0d 5764:7ac111db8a07
1 package de.intevation.flys.artifacts.model;
2
3
4 public class StaticMorphoWidthCacheKey
5 {
6 public static final String CACHE_NAME = "morpho-width-table-static";
7
8 private int width_id;
9
10 public StaticMorphoWidthCacheKey(
11 int width_id
12 ) {
13 this.width_id = width_id;
14 }
15
16 @Override
17 public int hashCode() {
18 return (String.valueOf(width_id)).hashCode();
19 }
20
21 @Override
22 public boolean equals(Object other) {
23 if (!(other instanceof StaticMorphoWidthCacheKey)) {
24 return false;
25 }
26 StaticMorphoWidthCacheKey o = (StaticMorphoWidthCacheKey) other;
27 return this.width_id == o.width_id;
28 }
29 }

http://dive4elements.wald.intevation.org