/docs/api/java.base/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation" class="externalLink">Annotation</a>[]&nbsp;annotations)</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>variant</code> - entity <a href