Skip to content

Commit 6324db8

Browse files
committed
Reduce duplicate lines.
1 parent c39757e commit 6324db8

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

src/main/java/edu/ie3/datamodel/models/timeseries/repetitive/RandomLoadProfileTimeSeries.java

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import de.lmu.ifi.dbs.elki.math.statistics.distribution.GeneralizedExtremeValueDistribution;
99
import edu.ie3.datamodel.models.profile.LoadProfile;
1010
import edu.ie3.datamodel.models.value.load.RandomLoadValues;
11-
import java.util.Objects;
1211
import java.util.Set;
1312
import java.util.UUID;
1413
import javax.measure.quantity.Energy;
@@ -35,27 +34,8 @@ public LoadProfile.RandomLoadProfile getLoadProfile() {
3534
return (LoadProfile.RandomLoadProfile) super.getLoadProfile();
3635
}
3736

38-
@Override
39-
public boolean equals(Object o) {
40-
if (this == o) return true;
41-
if (o == null || getClass() != o.getClass()) return false;
42-
return super.equals(o);
43-
}
44-
45-
@Override
46-
public int hashCode() {
47-
return Objects.hash(super.hashCode());
48-
}
49-
5037
@Override
5138
public String toString() {
52-
return "RandomLoadProfileTimeSeries{"
53-
+ "uuid="
54-
+ getUuid()
55-
+ "loadProfile="
56-
+ getLoadProfile()
57-
+ ", valueMapping="
58-
+ getValueMapping()
59-
+ '}';
39+
return "Random" + super.toString();
6040
}
6141
}

0 commit comments

Comments
 (0)