title: Extension function override of `equals(Any?): Boolean`
body: <p>A Java dependency defines some value classes without equals methods. They really should implement it, but they don't.</p>
  
  <pre><code>public class OrderBookEntry {
  
    private String price;
    private String qty;
  
    public String getPrice() {
      return price;
    }
  
    public void setPrice(String price) {
      this.price = price;
    }
  
    public String getQty() {
      return qty;
    }
  
    public void setQty(String qty) {
      this.qty = qty;
    }
  }
  </code></pre>
  
  <p>I would like to implement equals by extension</p>
  
  <pre><code>fun OrderBookEntry.equals(other: Any?): Boolean = 
    EqualsBuilder.reflectionEquals(this, other)
  </code></pre>
  
  <p>but I'm given a warning that</p>
  
  <blockquote>
    <p>Extension is shadowed by a member. <code>public open fun equals(other: Any?): Boolean</code></p>
  </blockquote>
  
  <p>and the extension method has no effect.</p>
  
  <p>Can I override the equals behaviour?</p>