code>NewCookie.Builder</code></a> instead.</div>
</div>
<div class="block">Create a new instance copying the information in the supplied cookie.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>cookie</code> - the cookie to clone.</dd>
<dt>Throws:</dt>
<dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if cookie is <code>null</code>.