@Override
    public boolean equals(final Object o) {
        if (o == null) {
            return false;
        }

        if (o == this) {
            return true;
        }

        if (!(o instanceof PipelineLink)) {
            return false;
        }

        final PipelineLink link = (PipelineLink) o;

        if (from != null && !from.equals(link.from)) {
            return false;
        }

        if (link.from != null && !link.from.equals(from)) {
            return false;
        }

        if (to != null && !to.equals(link.to)) {
            return false;
        }

        return !(link.to != null && !link.to.equals(to));

    }
<p>
Java class for Link complex type.
<p>
<p>
The following schema fragment specifies the expected content contained within
this class.
<p>
<pre>
&lt;complexType name="Link">
  &lt;complexContent>
    &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
      &lt;sequence>
        &lt;element name="from" type="{http://www.w3.org/2001/XMLSchema}string"/>
        &lt;element name="to" type="{http://www.w3.org/2001/XMLSchema}string"/>
      &lt;/sequence>
    &lt;/restriction>
  &lt;/complexContent>
&lt;/complexType>
</pre>
stroom-legacy/stroom-legacy-model_6_1/src/main/java/stroom/legacy/model_6_1/PipelineLink.java