 interface in java.lang" class="externalLink">String</a>&nbsp;mediaType)</pre>
<div class="block">Create an entity using a supplied content media type.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - entity Java type.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>entity</code> - entity data.</dd>
<dd><code>mediaType</code> - entity content type.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>entity instance.</dd>
<dt><span class="t