de.dagere.kopeme.kieker.aggregateddata.AggregatedDataNode Maven / Gradle / Ivy
package de.dagere.kopeme.kieker.aggregateddata;
import com.fasterxml.jackson.annotation.JsonCreator;
public class AggregatedDataNode extends DataNode {
private final int eoi, ess;
@JsonCreator
public AggregatedDataNode(final int eoi, final int ess, final String call) {
super(call);
this.eoi = eoi;
this.ess = ess;
}
@Override
public int hashCode() {
final int hashCode = eoi + ess + call.hashCode();
return hashCode;
}
@Override
public boolean equals(final Object other) {
if (other instanceof AggregatedDataNode) {
final AggregatedDataNode node = (AggregatedDataNode) other;
return eoi == node.eoi && ess == node.ess && call.equals(node.call);
}
return false;
}
@Override
public String toString() {
return eoi + "_" + ess + "_" + call;
}
public int getEoi() {
return eoi;
}
public int getEss() {
return ess;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy