ber-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="Cookie.html" title="class in jakarta.ws.rs.core">Cookie</a></span>&nbsp;<span class="element-name">toCookie</span>()</div>
<div class="block">Obtain a new instance of a <a href="Cookie.html" title="class in jakarta.ws.rs.core"><code>Cookie</code></a> with the same name, value, path, domain and version as this
 <code>NewCookie</code>. This method can be used to obtain an object that can be compared for equality with 