Interface InstanceFactory<T>
- Type Parameters:
T- the type of the generated class.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents the factory which can be used to obtain new instances of generated rpc classes.
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionnewInstance(@NonNull Object... args) Constructs a new instance of the underlying class, using the given arguments for the constructor invocation of the class.
-
Method Details
-
newInstance
Constructs a new instance of the underlying class, using the given arguments for the constructor invocation of the class.- Parameters:
args- the arguments for the constructor.- Returns:
- a new instance of the underlying class.
- Throws:
NullPointerException- if the given arguments are null.
-