Does anyone know how to use the SAM conversion for a generic java method? Ex. the ViewModelProvider.Factory interface? I can't seem to make a new instance without using the
object :
pattern
Copy code
public interface Factory {
<T extends ViewModel> T create(@NonNull Class<T> modelClass);
}