Re: can someone explain how Flink works with Java generics

2021-05-11 Thread Chesnay Schepler
Maybe this SO post can shed some light on the matter: https://stackoverflow.com/questions/4343202/difference-between-super-t-and-extends-t-in-java Here's also a small example you can play around with: public static void main(String[] args) { final Container container =new Container<>(new A

can someone explain how Flink works with Java generics

2021-05-10 Thread Zhenhao Li
Hi there, I mostly work with Scala and don't know too much about the internal machinery of Java. There is something very confusing to me. Since Java generics don't support type variations like Scala, why do you have things like ``` public class TumblingEventTimeWindows extends WindowAssigner ```