comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/StaticWQKmsCacheKey.java @ 3814:8083f6384023

merged flys-artifacts/pre2.6-2012-01-04
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:14:56 +0200
parents 02cd002205a3
children 17e7a0d063bd
comparison
equal deleted inserted replaced
1491:2a00f4849738 3814:8083f6384023
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 StaticWQKmsCacheKey
9 implements Serializable
10 {
11 public static final String CACHE_NAME = "wst-wq--value-table-static";
12
13 private int column;
14 private int wst_id;
15
16 public StaticWQKmsCacheKey(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 StaticWQKmsCacheKey)) {
27 return false;
28 }
29 StaticWQKmsCacheKey o = (StaticWQKmsCacheKey) 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 :

http://dive4elements.wald.intevation.org