com.github.lipinskipawel.maelstrom.api.protocol.broadcast.Topology Maven / Gradle / Ivy
package com.github.lipinskipawel.maelstrom.api.protocol.broadcast;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.lipinskipawel.maelstrom.api.protocol.EventType;
import java.util.List;
import java.util.Map;
import java.util.Objects;
public final class Topology extends EventType implements BroadcastWorkload {
@JsonProperty("topology")
public Map> topology;
public Topology() {
super("topology");
}
public Topology(Map> topology) {
super("topology");
this.topology = topology;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
Topology topology1 = (Topology) o;
return Objects.equals(topology, topology1.topology);
}
@Override
public int hashCode() {
return Objects.hash(super.hashCode(), topology);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy