Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/StaticBedHeightCacheKey.java @ 3614:68beaa827751
MINFO: Implemented UI and facet/artifact stack for bed height differences.
flys-artifacts/trunk@5276 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 28 Aug 2012 11:45:23 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3613:dd6e25980c91 | 3614:68beaa827751 |
---|---|
1 package de.intevation.flys.artifacts.model; | |
2 | |
3 import java.io.Serializable; | |
4 | |
5 public class StaticBedHeightCacheKey implements Serializable { | |
6 public static final String CACHE_NAME = "bedheight-value-table-static"; | |
7 | |
8 private int time; | |
9 private int height_id; | |
10 | |
11 public StaticBedHeightCacheKey(int column, int wst_id) { | |
12 this.height_id = wst_id; | |
13 this.time = column; | |
14 } | |
15 | |
16 public int hashCode() { | |
17 return (height_id << 8) | time; | |
18 } | |
19 | |
20 public boolean equals(Object other) { | |
21 if (!(other instanceof StaticBedHeightCacheKey)) { | |
22 return false; | |
23 } | |
24 StaticBedHeightCacheKey o = (StaticBedHeightCacheKey) other; | |
25 return this.height_id == o.height_id && this.time == o.time; | |
26 } | |
27 } | |
28 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |