poohbar
12/21/2018, 3:46 PMvoid
?
public interface RequestHandler<I, O> {
public O handleRequest(I input, Context context);
}
nestserau
12/21/2018, 4:10 PMNothing?
as a type, then you can pass null
as an argument.nestserau
12/21/2018, 4:12 PMclass MyClass: RequestHandler<I, Nothing?> {
fun handleRequest(input: I, context: Context): Nothing? = null
}
Something like that.aarjav
12/21/2018, 9:45 PMUnit
if the method is expected to return