3 Replies Latest reply: Oct 14, 2012 4:22 AM by EJP RSS

    Or logical operator


      Why there is no way to define or logical restriction for generic types?
      public class MyClass{
          //you can add to this set only integers or strings, at runtime this set contains objects
          private Set<? extends integer || String> mySet;