Package net.orbyfied.coldlib.util
Interface Assembly.InstanceFactory<T,O>
- Type Parameters:
T- The instance type.O- The options type.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Responsible for creating an instance,
taking in account the provided options.
-
Method Summary
-
Method Details
-
create
Creates an instance of typeTwith the given options.- Parameters:
options- The options to use.- Returns:
- The new instance.
- Throws:
IllegalArgumentException- If the options are invalid.
-