="../../client/Entity.html#entity(T,jakarta.ws.rs.core.MediaType)" class="member-name-link">entity</a><wbr>(T&nbsp;entity,
 <a href="../MediaType.html" title="class in jakarta.ws.rs.core">MediaType</a>&nbsp;mediaType)</code></div>
<div class="col-last odd-row-color">
<div class="block">Create an entity using a supplied content media type.</div>
</div>
<div class="col-first even-row-color"><code>static &lt;T&gt;&nbsp;<a href="../../client/Entity.html" title="class in jakarta.ws.rs.client">Entity</a>&lt;T&gt;