<li><ahref="../../../../../com/comphenix/protocol/reflect/instances/CollectionGenerator.html"title="class in com.comphenix.protocol.reflect.instances"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../../../com/comphenix/protocol/reflect/instances/ExistingGenerator.html"title="class in com.comphenix.protocol.reflect.instances"><spanclass="strong">Next Class</span></a></li>
<dd><ahref="../../../../../com/comphenix/protocol/reflect/instances/InstanceProvider.html"title="interface in com.comphenix.protocol.reflect.instances">InstanceProvider</a></dd>
implements <ahref="../../../../../com/comphenix/protocol/reflect/instances/InstanceProvider.html"title="interface in com.comphenix.protocol.reflect.instances">InstanceProvider</a></pre>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Field and Description</th>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>static <ahref="../../../../../com/comphenix/protocol/reflect/instances/DefaultInstances.html"title="class in com.comphenix.protocol.reflect.instances">DefaultInstances</a></code></td>
<thclass="colOne"scope="col">Constructor and Description</th>
</tr>
<trclass="altColor">
<tdclass="colOne"><code><strong><ahref="../../../../../com/comphenix/protocol/reflect/instances/DefaultInstances.html#DefaultInstances(com.comphenix.protocol.reflect.instances.DefaultInstances)">DefaultInstances</a></strong>(<ahref="../../../../../com/comphenix/protocol/reflect/instances/DefaultInstances.html"title="class in com.comphenix.protocol.reflect.instances">DefaultInstances</a> other)</code>
<divclass="block">Copy a given instance provider.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colOne"><code><strong><ahref="../../../../../com/comphenix/protocol/reflect/instances/DefaultInstances.html#DefaultInstances(com.google.common.collect.ImmutableList)">DefaultInstances</a></strong>(com.google.common.collect.ImmutableList<<ahref="../../../../../com/comphenix/protocol/reflect/instances/InstanceProvider.html"title="interface in com.comphenix.protocol.reflect.instances">InstanceProvider</a>> registered)</code>
<divclass="block">Construct a default instance generator using the given instance providers.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colOne"><code><strong><ahref="../../../../../com/comphenix/protocol/reflect/instances/DefaultInstances.html#DefaultInstances(com.comphenix.protocol.reflect.instances.InstanceProvider...)">DefaultInstances</a></strong>(<ahref="../../../../../com/comphenix/protocol/reflect/instances/InstanceProvider.html"title="interface in com.comphenix.protocol.reflect.instances">InstanceProvider</a>... instaceProviders)</code>
<divclass="block">Construct a default instance generator using the given instance providers.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ulclass="blockList">
<liclass="blockList"><aname="method_summary">
<!---->
</a>
<h3>Method Summary</h3>
<tableclass="overviewSummary"border="0"cellpadding="3"cellspacing="0"summary="Method Summary table, listing methods, and an explanation">
<tdclass="colFirst"><code><ahref="../../../../../com/comphenix/protocol/reflect/instances/DefaultInstances.html"title="class in com.comphenix.protocol.reflect.instances">DefaultInstances</a></code></td>
<tdclass="colFirst"><code>static <ahref="../../../../../com/comphenix/protocol/reflect/instances/DefaultInstances.html"title="class in com.comphenix.protocol.reflect.instances">DefaultInstances</a></code></td>
<tdclass="colLast"><code><strong><ahref="../../../../../com/comphenix/protocol/reflect/instances/DefaultInstances.html#fromArray(com.comphenix.protocol.reflect.instances.InstanceProvider...)">fromArray</a></strong>(<ahref="../../../../../com/comphenix/protocol/reflect/instances/InstanceProvider.html"title="interface in com.comphenix.protocol.reflect.instances">InstanceProvider</a>... instanceProviders)</code>
<tdclass="colFirst"><code>static <ahref="../../../../../com/comphenix/protocol/reflect/instances/DefaultInstances.html"title="class in com.comphenix.protocol.reflect.instances">DefaultInstances</a></code></td>
<tdclass="colLast"><code><strong><ahref="../../../../../com/comphenix/protocol/reflect/instances/DefaultInstances.html#fromCollection(java.util.Collection)">fromCollection</a></strong>(java.util.Collection<<ahref="../../../../../com/comphenix/protocol/reflect/instances/InstanceProvider.html"title="interface in com.comphenix.protocol.reflect.instances">InstanceProvider</a>> instanceProviders)</code>
<divclass="block">Construct a default instance generator using the given instance providers.</div>
java.util.List<<ahref="../../../../../com/comphenix/protocol/reflect/instances/InstanceProvider.html"title="interface in com.comphenix.protocol.reflect.instances">InstanceProvider</a>> providers)</code>
<divclass="block">Retrieves a default instance or value that is assignable to this type.</div>
<tdclass="colFirst"><code>com.google.common.collect.ImmutableList<<ahref="../../../../../com/comphenix/protocol/reflect/instances/InstanceProvider.html"title="interface in com.comphenix.protocol.reflect.instances">InstanceProvider</a>></code></td>
<pre>public DefaultInstances(com.google.common.collect.ImmutableList<<ahref="../../../../../com/comphenix/protocol/reflect/instances/InstanceProvider.html"title="interface in com.comphenix.protocol.reflect.instances">InstanceProvider</a>> registered)</pre>
<divclass="block">Construct a default instance generator using the given instance providers.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>registered</code> - - list of instance providers.</dd></dl>
<pre>public DefaultInstances(<ahref="../../../../../com/comphenix/protocol/reflect/instances/DefaultInstances.html"title="class in com.comphenix.protocol.reflect.instances">DefaultInstances</a> other)</pre>
<divclass="block">Copy a given instance provider.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>other</code> - - instance provider to copy.</dd></dl>
<pre>public DefaultInstances(<ahref="../../../../../com/comphenix/protocol/reflect/instances/InstanceProvider.html"title="interface in com.comphenix.protocol.reflect.instances">InstanceProvider</a>... instaceProviders)</pre>
<divclass="block">Construct a default instance generator using the given instance providers.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>instaceProviders</code> - - array of instance providers.</dd></dl>
<pre>public static <ahref="../../../../../com/comphenix/protocol/reflect/instances/DefaultInstances.html"title="class in com.comphenix.protocol.reflect.instances">DefaultInstances</a> fromArray(<ahref="../../../../../com/comphenix/protocol/reflect/instances/InstanceProvider.html"title="interface in com.comphenix.protocol.reflect.instances">InstanceProvider</a>... instanceProviders)</pre>
<pre>public static <ahref="../../../../../com/comphenix/protocol/reflect/instances/DefaultInstances.html"title="class in com.comphenix.protocol.reflect.instances">DefaultInstances</a> fromCollection(java.util.Collection<<ahref="../../../../../com/comphenix/protocol/reflect/instances/InstanceProvider.html"title="interface in com.comphenix.protocol.reflect.instances">InstanceProvider</a>> instanceProviders)</pre>
<divclass="block">Construct a default instance generator using the given instance providers.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>instaceProviders</code> - - collection of instance providers.</dd>
<pre>public com.google.common.collect.ImmutableList<<ahref="../../../../../com/comphenix/protocol/reflect/instances/InstanceProvider.html"title="interface in com.comphenix.protocol.reflect.instances">InstanceProvider</a>> getRegistered()</pre>
<divclass="block">Retrieves a immutable list of every default object providers that generates instances.</div>
<dl><dt><spanclass="strong">Returns:</span></dt><dd>Table of instance providers.</dd></dl>
</li>
</ul>
<aname="isNonNull()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>isNonNull</h4>
<pre>public boolean isNonNull()</pre>
<divclass="block">Retrieve whether or not the constructor's parameters must be non-null.</div>
<dl><dt><spanclass="strong">Returns:</span></dt><dd>TRUE if they must be non-null, FALSE otherwise.</dd></dl>
java.util.List<<ahref="../../../../../com/comphenix/protocol/reflect/instances/InstanceProvider.html"title="interface in com.comphenix.protocol.reflect.instances">InstanceProvider</a>> providers)</pre>
<divclass="block">Retrieves a default instance or value that is assignable to this type.
<p>
This includes, but isn't limited too:
<ul>
<li>Primitive types. Returns either zero or null.</li>
<li>Primitive wrappers.</li>
<li>String types. Returns an empty string.</li>
<li>Arrays. Returns a zero-length array of the same type.</li>
<li>Enums. Returns the first declared element.</li>
<li>Collection interfaces, such as List and Set. Returns the most appropriate empty container.</li>
<li>Any type with a public constructor that has parameters with defaults.</li>
</ul>
</ul></div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>type</code> - - the type to construct a default value.</dd><dd><code>providers</code> - - instance providers used during the construction.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>A default value/instance, or NULL if not possible.</dd></dl>
<pre>public <ahref="../../../../../com/comphenix/protocol/reflect/instances/DefaultInstances.html"title="class in com.comphenix.protocol.reflect.instances">DefaultInstances</a> forEnhancer(net.sf.cglib.proxy.Enhancer enhancer)</pre>
<divclass="block">Construct default instances using the CGLIB enhancer object instead.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>enhancer</code> - - a CGLIB enhancer to use.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>A default instance generator that uses the CGLIB enhancer.</dd></dl>
<divclass="block">Used by the default instance provider to create a class from a given constructor.
The default method uses reflection.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>type</code> - - the type to create.</dd><dd><code>constructor</code> - - the constructor to use.</dd><dd><code>types</code> - - type of each parameter in order.</dd><dd><code>params</code> - - value of each parameter in order.</dd>
<divclass="block"><strong>Description copied from interface: <code><ahref="../../../../../com/comphenix/protocol/reflect/instances/InstanceProvider.html#create(java.lang.Class)">InstanceProvider</a></code></strong></div>
<divclass="block">Create an instance given a type, if possible.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><ahref="../../../../../com/comphenix/protocol/reflect/instances/InstanceProvider.html#create(java.lang.Class)">create</a></code> in interface <code><ahref="../../../../../com/comphenix/protocol/reflect/instances/InstanceProvider.html"title="interface in com.comphenix.protocol.reflect.instances">InstanceProvider</a></code></dd>
<dt><spanclass="strong">Parameters:</span></dt><dd><code>type</code> - - type to create.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>The instance, or NULL if the type cannot be created.</dd></dl>
<li><ahref="../../../../../com/comphenix/protocol/reflect/instances/CollectionGenerator.html"title="class in com.comphenix.protocol.reflect.instances"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../../../com/comphenix/protocol/reflect/instances/ExistingGenerator.html"title="class in com.comphenix.protocol.reflect.instances"><spanclass="strong">Next Class</span></a></li>