OnJava8-Examples icon indicating copy to clipboard operation
OnJava8-Examples copied to clipboard

About Using EnumSet Instead of Flags

Open antaow opened this issue 3 years ago • 0 comments

Bruce,

When I read your chapter on Enumerations, In the section of Using EnumSet Instead of Flags, original text:you’ll see that the of() method is overloaded both with varargs and with individual methods taking two through five explicit arguments.

The question is as follows:

I found that there are 1-5 parameters CleanShot 2022-06-28 at 21 55 07@2x

My java version is "17.0.1" 2021-10-19 LTS

antaow avatar Jun 28 '22 14:06 antaow