comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/StaticSedimentLoadCacheKey.java @ 4382:3937c6a85db4

Removed superfluous imports.
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 02 Nov 2012 17:26:16 +0100
parents 6a65e7ef43c0
children
comparison
equal deleted inserted replaced
4381:80f5d1f2d4fd 4382:3937c6a85db4
1 package de.intevation.flys.artifacts.model; 1 package de.intevation.flys.artifacts.model;
2
3 import java.util.Date;
4 2
5 import org.apache.commons.lang.builder.HashCodeBuilder; 3 import org.apache.commons.lang.builder.HashCodeBuilder;
6 4
7 5
8 public class StaticSedimentLoadCacheKey 6 public class StaticSedimentLoadCacheKey
27 this.endKm = endKm; 25 this.endKm = endKm;
28 this.sYear = sYear; 26 this.sYear = sYear;
29 this.eYear = eYear; 27 this.eYear = eYear;
30 } 28 }
31 29
30 @Override
32 public int hashCode() { 31 public int hashCode() {
33 HashCodeBuilder builder = new HashCodeBuilder(); 32 HashCodeBuilder builder = new HashCodeBuilder();
34 builder.append(river); 33 builder.append(river);
35 builder.append(startKm); 34 builder.append(startKm);
36 builder.append(endKm); 35 builder.append(endKm);
37 builder.append(sYear); 36 builder.append(sYear);
38 builder.append(eYear); 37 builder.append(eYear);
39 return builder.toHashCode(); 38 return builder.toHashCode();
40 } 39 }
41 40
41 @Override
42 public boolean equals(Object other) { 42 public boolean equals(Object other) {
43 if (!(other instanceof StaticBedHeightCacheKey)) { 43 if (!(other instanceof StaticBedHeightCacheKey)) {
44 return false; 44 return false;
45 } 45 }
46 StaticSedimentLoadCacheKey o = (StaticSedimentLoadCacheKey) other; 46 StaticSedimentLoadCacheKey o = (StaticSedimentLoadCacheKey) other;

http://dive4elements.wald.intevation.org