T - Type that gets created by the factory.X - Exception that can get thrown during execution of the factory
method. If no exception is thrown, use
NeverThrownRuntimeException.@FunctionalInterface public interface IFactory<T,X extends java.lang.Exception>
Supplier now,
but this interface also support to throw an exception.| Modifier and Type | Method and Description |
|---|---|
T |
create()
Factory method
|