3 Replies Latest reply on Oct 14, 2012 9:22 AM by EJP

    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;