Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/org/dive4elements/river/artifacts/model/StaticMorphoWidthCacheKey.java @ 5831:bd047b71ab37
Repaired internal references
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 25 Apr 2013 12:06:39 +0200 |
parents | flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/StaticMorphoWidthCacheKey.java@7ac111db8a07 |
children |
comparison
equal
deleted
inserted
replaced
5830:160f53ee0870 | 5831:bd047b71ab37 |
---|---|
1 package org.dive4elements.river.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 } |