package se.arbetsformedlingen.venice.probe;

import java.util.Objects;

public class Host {
    private String host;

    Host(String host) {
        this.host = host;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Host host1 = (Host) o;
        return Objects.equals(host, host1.host);
    }

    @Override
    public int hashCode() {
        return Objects.hash(host);
    }

    @Override
    public String toString() {
        return "Host{" +
                "host='" + host + '\'' +
                '}';
    }
}

@@ -160,32 +160,83 @@
  = host;%0A    %7D%0A%0A
+    String getName() %7B%0A        return host;%0A    %7D%0A%0A
     @Override%0A  

Allow user to read the name of the host