view artifacts/src/main/java/org/dive4elements/river/artifacts/model/map/StaticHWSCacheKey.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/map/StaticHWSCacheKey.java@bd047b71ab37
children 4897a58c8746
line wrap: on
line source
package org.dive4elements.river.artifacts.model.map;


public class StaticHWSCacheKey
{
    public static final String CACHE_NAME = "hws-value-table-static";

    private String river;
    private int type;

    public StaticHWSCacheKey(String river, int type) {
        this.river = river;
        this.type = type;
    }

    public int hashCode() {
        return river.hashCode() | (type << 8);
    }

    public boolean equals(Object other) {
        if (!(other instanceof StaticHWSCacheKey)) {
            return false;
        }
        StaticHWSCacheKey o = (StaticHWSCacheKey) other;
        return this.river == o.river;
    }
}

http://dive4elements.wald.intevation.org