Interface IInstantiator
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface IInstantiator
Instantiator for Objects without default constructor.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static IInstantiator
getInstantiator()
<T> T
newInstance(Class<T> type)
Create a new instance.
-
-
-
Method Detail
-
newInstance
<T> T newInstance(Class<T> type)
Create a new instance.- Parameters:
type
- type of instance- Returns:
- instance
-
getInstantiator
static IInstantiator getInstantiator()
-
-