Package arc.struct

Class EnumSet<T extends Enum<T>>

java.lang.Object
arc.struct.EnumSet<T>

public class EnumSet<T extends Enum<T>> extends Object
Tiny array wrapper with a mask int for fast contains() checks.
  • Field Details

    • array

      public T extends Enum<T>[] array
      Array, for iterating over. Do not change.
    • size

      public int size
  • Method Details

    • of

      public static <T extends Enum<T>> EnumSet<T> of(T... arr)
    • with

      public EnumSet<T> with(T add)
      Returns:
      a new set with the specified enum, or itself if this flag is already present.
    • contains

      public boolean contains(T t)