On Sat, Sep 21, 2013 at 11:32 PM, Marcin Wiśnicki <mwisni...@gmail.com> wrote:
> On Sat, Sep 21, 2013 at 10:21 PM, Remi Forax <fo...@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().

Reply via email to