@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; KubernetesSlave that = (KubernetesSlave) o; if (cloudName != null ? !cloudName.equals(that.cloudName) : that.cloudName != null) return false; if (namespace != null ? !namespace.equals(that.namespace) : that.namespace != null) return false; return template != null ? template.equals(that.template) : that.template == null; }