andre@8569: /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde andre@8569: * Software engineering by Intevation GmbH andre@8569: * andre@8569: * This file is Free Software under the GNU AGPL (>=v3) andre@8569: * and comes with ABSOLUTELY NO WARRANTY! Check out the andre@8569: * documentation coming with Dive4Elements River for details. andre@8569: */ andre@8569: andre@8569: package org.dive4elements.river.artifacts.model; andre@8569: andre@8569: import java.io.Serializable; andre@8569: andre@8569: /** andre@8569: * Caching-Key object for 'static' wst- data. andre@8569: */ andre@8569: public final class StaticWQKmsCacheKey andre@8569: implements Serializable andre@8569: { andre@8569: public static final String CACHE_NAME = "wst-wq-value-table-static"; andre@8569: andre@8569: private int column; andre@8569: private int wst_id; andre@8569: andre@8569: public StaticWQKmsCacheKey(int column, int wst_id) { andre@8569: this.wst_id = wst_id; andre@8569: this.column = column; andre@8569: } andre@8569: andre@8569: public int hashCode() { andre@8569: return (wst_id << 8) | column; andre@8569: } andre@8569: andre@8569: public boolean equals(Object other) { andre@8569: if (!(other instanceof StaticWQKmsCacheKey)) { andre@8569: return false; andre@8569: } andre@8569: StaticWQKmsCacheKey o = (StaticWQKmsCacheKey) other; andre@8569: return this.wst_id == o.wst_id && this.column == o.column; andre@8569: } andre@8569: } andre@8569: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :