Skip to content
Snippets Groups Projects

Clean up script names

Merged Sören Henning requested to merge clean-up-script-names into master
1 file
+ 20
0
Compare changes
  • Side-by-side
  • Inline
package theodolite.uc4.streamprocessing;
package theodolite.uc4.streamprocessing;
 
import java.util.Objects;
 
/**
/**
* Composed key of an hour of the day and a sensor id.
* Composed key of an hour of the day and a sensor id.
*/
*/
@@ -26,4 +28,22 @@ public class HourOfDayKey {
@@ -26,4 +28,22 @@ public class HourOfDayKey {
return this.sensorId + ";" + this.hourOfDay;
return this.sensorId + ";" + this.hourOfDay;
}
}
 
@Override
 
public int hashCode() {
 
return Objects.hash(this.hourOfDay, this.sensorId);
 
}
 
 
@Override
 
public boolean equals(final Object obj) {
 
if (obj == this) {
 
return true;
 
}
 
if (obj instanceof HourOfDayKey) {
 
final HourOfDayKey other = (HourOfDayKey) obj;
 
return Objects.equals(this.hourOfDay, other.hourOfDay)
 
&& Objects.equals(this.sensorId, other.sensorId);
 
}
 
return false;
 
}
 
}
}
Loading