comparison flys-artifacts/src/main/java/org/dive4elements/river/artifacts/model/StaticWQKmsCacheKey.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/StaticWQKmsCacheKey.java@17e7a0d063bd
children
comparison
equal deleted inserted replaced
5830:160f53ee0870 5831:bd047b71ab37
1 package org.dive4elements.river.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