Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/StaticPorosityCacheKey.java @ 7855:92a2b9b691e1
Fixed imports and make it build again.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Wed, 30 Apr 2014 17:23:28 +0200 |
parents | 6e346ef4446f |
children |
comparison
equal
deleted
inserted
replaced
7854:8c6ed23ce315 | 7855:92a2b9b691e1 |
---|---|
6 * documentation coming with Dive4Elements River for details. | 6 * documentation coming with Dive4Elements River for details. |
7 */ | 7 */ |
8 | 8 |
9 package org.dive4elements.river.artifacts.model; | 9 package org.dive4elements.river.artifacts.model; |
10 | 10 |
11 import java.io.Serializable; | |
12 | |
11 | 13 |
12 public class StaticPorosityCacheKey | 14 public class StaticPorosityCacheKey |
15 implements Serializable | |
13 { | 16 { |
14 public static final String CACHE_NAME = "porosity-table-static"; | 17 public static final String CACHE_NAME = "porosity-table-static"; |
15 | 18 |
16 private int porosity_id; | 19 private int porosityId; |
17 | 20 |
18 public StaticPorosityCacheKey( | 21 public StaticPorosityCacheKey( |
19 int porosity_id | 22 int porosityId |
20 ) { | 23 ) { |
21 this.porosity_id = porosity_id; | 24 this.porosityId = porosityId; |
22 } | 25 } |
23 | 26 |
24 @Override | 27 @Override |
25 public int hashCode() { | 28 public int hashCode() { |
26 return (String.valueOf(porosity_id)).hashCode(); | 29 return (String.valueOf(porosityId)).hashCode(); |
27 } | 30 } |
28 | 31 |
29 @Override | 32 @Override |
30 public boolean equals(Object other) { | 33 public boolean equals(Object other) { |
31 if (!(other instanceof StaticPorosityCacheKey)) { | 34 if (!(other instanceof StaticPorosityCacheKey)) { |
32 return false; | 35 return false; |
33 } | 36 } |
34 StaticPorosityCacheKey o = (StaticPorosityCacheKey) other; | 37 StaticPorosityCacheKey o = (StaticPorosityCacheKey) other; |
35 return this.porosity_id == o.porosity_id; | 38 return this.porosityId == o.porosityId; |
36 } | 39 } |
37 } | 40 } |