Mercurial > dive4elements > river
view flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WstValueTableCacheKey.java @ 628:51b69bca4560
ISSUE-85 (part III/III) Use the given kilometer values for the waterlevel computation.
flys-artifacts/trunk@1993 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 24 May 2011 12:37:45 +0000 |
parents | e3ee131d5dd3 |
children | 07640ab913fd |
line wrap: on
line source
package de.intevation.flys.artifacts.model; import java.io.Serializable; public final class WstValueTableCacheKey implements Serializable { private int riverId; private int kind; public WstValueTableCacheKey(int riverId, int kind) { this.riverId = riverId; this.kind = kind; } public int hashCode() { return (riverId << 8) | kind; } public boolean equals(Object other) { if (!(other instanceof WstValueTableCacheKey)) { return false; } WstValueTableCacheKey o = (WstValueTableCacheKey)other; return riverId == o.riverId && kind == o.kind; } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :