Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8085606

EnumSet.of(E...)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 8u45
    • 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.


            robm Robert Mckenna
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: