Immutable version of EnumSet

Are you looking for Sets.immutableEnumSet (Guava) perhaps?

Returns an immutable set instance containing the given enum elements. Internally, the returned set will be backed by an EnumSet.

The iteration order of the returned set follows the enum’s iteration order, not the order in which the elements appear in the given collection.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)