Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/StaticWKmsCacheKey.java @ 1722:fb4fb1c67c35
Added WKmsFactory.
flys-artifacts/trunk@3004 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 18 Oct 2011 12:44:02 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1721:eb35570df0e8 | 1722:fb4fb1c67c35 |
---|---|
1 package de.intevation.flys.artifacts.model; | |
2 | |
3 import java.io.Serializable; | |
4 | |
5 /** | |
6 * Caching-Key object for 'static' wst- data. | |
7 */ | |
8 public final class StaticWKmsCacheKey | |
9 implements Serializable | |
10 { | |
11 public static final String CACHE_NAME = "wst-value-table-static"; | |
12 | |
13 private int column; | |
14 private int wst_id; | |
15 | |
16 public StaticWKmsCacheKey(int column, int wst_id) { | |
17 this.wst_id = wst_id; | |
18 this.column = column; | |
19 } | |
20 | |
21 public int hashCode() { | |
22 return (wst_id << 8) | column; | |
23 } | |
24 | |
25 public boolean equals(Object other) { | |
26 if (!(other instanceof StaticWKmsCacheKey)) { | |
27 return false; | |
28 } | |
29 StaticWKmsCacheKey o = (StaticWKmsCacheKey) other; | |
30 return wst_id == o.wst_id && this.column == o.column; | |
31 } | |
32 } | |
33 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |