elect
10/10/2018, 12:46 PMiterator()
on `Enum`s, so that we can write for(e in enum)
? Instead of e in enum.values()
which, I guess, implies an array copy?miha-x64
10/10/2018, 12:56 PMmiha-x64
10/10/2018, 12:58 PMsun.misc.SharedSecrets
is not a safe way :)elect
10/10/2018, 1:09 PMelect
10/10/2018, 1:12 PMmiha-x64
10/10/2018, 1:21 PM$VALUES.clone()
was a mistake, and it should be public static final Set<Self> VALUES = unmodifiableSet(EnumSet.allOf(Self.class))
instead.