Expose elementType of EnumSet and EnumMap

Marcin Wiśnicki mwisnicki at gmail.com
Sat Sep 21 21:45:23 UTC 2013


On Sat, Sep 21, 2013 at 11:32 PM, Marcin Wiśnicki <mwisnicki at gmail.com> wrote:
> On Sat, Sep 21, 2013 at 10:21 PM, Remi Forax <forax at univ-mlv.fr> wrote:
>> No, you can add methods to one value of an enum using the anonymous class
>> syntax.
>>
>>
>
> Thanks for pointing this out. This is something that can be clarified
> in javadoc.
> Though javadocs of existing factory methods of EnumSet are not so
> pedantic about "elementType" argument.

Alternatively the method can be called getElementDeclaringClass().



More information about the core-libs-dev mailing list