@Override
  public boolean equals(final Object obj) {
    if (obj == null) {
      return false;
    }
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof DefaultPeer)) {
      return false;
    }
    final DefaultPeer other = (DefaultPeer) obj;
    return id.equals(other.id) && enodeURL.equals(other.enodeURL);
  }
Creates a {@link DefaultPeer} instance from an URI object that follows the enode URL format.

@param uri The enode URI.
@return The Peer instance.
@see <a href="https://github.com/ethereum/wiki/wiki/enode-url-format">enode URL format</a>
ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/peers/DefaultPeer.java