EnumSet<T> constructor

EnumSet<T>(
  1. List<T> values
)

Creates an empty bit field for values.

Implementation

EnumSet(List<T> values) : flags = {
  for (int index = 0; index < values.length; index++)
    values [index]: 1 << index,
};