Mercurial > dive4elements > river
view artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/StaticSQCacheKey.java @ 5838:5aa05a7a34b7
Rename modules to more fitting names.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 25 Apr 2013 15:23:37 +0200 |
parents | flys-artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/StaticSQCacheKey.java@bd047b71ab37 |
children | 4897a58c8746 |
line wrap: on
line source
package org.dive4elements.river.artifacts.model.sq; import java.io.Serializable; public class StaticSQCacheKey implements Serializable { public static final String CACHE_NAME = "static-sq-relation"; private String river; private int measurementId; public StaticSQCacheKey(String river, int measurementId) { this.river = river; this.measurementId = measurementId; } public int hashCode() { return this.river.hashCode() | measurementId; } public boolean equals(Object other) { if (!(other instanceof StaticSQCacheKey)) { return false; } StaticSQCacheKey o = (StaticSQCacheKey) other; return this.river == o.river && this.measurementId == o.measurementId; } }