public final class InstantiationUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
newInstanceOrNull(Class<? extends T> clazz,
Object... params)
Create a new instance of a given class.
|
public static <T> T newInstanceOrNull(Class<? extends T> clazz, Object... params)
AmbigiousInstantiationException
when multiple matching constructors are found.T
- class type to be instantiatedclazz
- class to be instantiatedparams
- parameters to be passed to the constructorAmbigiousInstantiationException
- when multiple constructors matching the parametersCopyright © 2021 Hazelcast, Inc.. All Rights Reserved.