comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/StaticWQKmsCacheKey.java @ 3468:f37e7e8907cb

merged flys-artifacts/2.8.1
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:14:39 +0200
parents 17e7a0d063bd
children
comparison
equal deleted inserted replaced
3387:5ffad8bde8ad 3468:f37e7e8907cb
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 this.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