aaaah, so you can do something like <*>?
# spring
m
aaaah, so you can do something like <*>?
I'd avoid wildcard though and use some parent interface possibly with
out
modifier.
m
how would that look like?
but thanks already!
c
It's better if you read the docs I've linked. My half-ass explanation on generics is not something I'd suggest to rely on 😄
m
@Czar just as a sidenote. The process method would actually take T. Forgot that in the hurry. It would look like:
Copy code
interface EventProcessor<T> {
    fun process(event: T)
}
I think therefore out would not work, correct?
c
updated the snippet, you're right in that case
in
sounds more appropriate
m
thanks!