0

Is it possible to do something like class Foo<@NotNull T> or new Foo<@NotNull Bar> where the first one states that for all instances of Foo the value in the generic cannot be null and the second one states that for that instance of Foo it's generic value cannot be null?

vandench
  • 1,973
  • 3
  • 19
  • 28

0 Answers0