EnumSet.of(E...)

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: 8u45
    • Component/s: core-libs

      A DESCRIPTION OF THE REQUEST :
      Currently, public static <E extends Enum<E>> EnumSet<E> of(E first, E... rest) is supported
      and also noneOf(...) is supported.
      But it is easier to deal with the class if

      public static <E extends Enum<E>> EnumSet<E> of(E... rest) were also supported.
      That way, empty enums may be created by just enumerating the enums required.

      JUSTIFICATION :
      That way, empty enums may be created by just enumerating the enums required.


            Assignee:
            Robert Mckenna
            Reporter:
            Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: