Uses of Class
java.util.EnumSet

Packages that use EnumSet
Package Description
java.util  
  • Uses of EnumSet in java.util

    Methods in java.util that return EnumSet
    Modifier and Type Method Description
    static <E extends Enum<E>>
    EnumSet<E>
    EnumSet.allOf​(Class<E> elementType)
    Creates an enum set filled with all the enum elements of the specified elementType.
    EnumSet<E> EnumSet.clone()
    Creates a new enum set with the same elements as those contained in this enum set.
    static <E extends Enum<E>>
    EnumSet<E>
    EnumSet.complementOf​(EnumSet<E> s)
    Creates an enum set.
    static <E extends Enum<E>>
    EnumSet<E>
    EnumSet.copyOf​(Collection<E> c)
    Creates an enum set.
    static <E extends Enum<E>>
    EnumSet<E>
    EnumSet.copyOf​(EnumSet<E> s)
    Creates an enum set.
    static <E extends Enum<E>>
    EnumSet<E>
    EnumSet.noneOf​(Class<E> elementType)
    Creates an empty enum set.
    static <E extends Enum<E>>
    EnumSet<E>
    EnumSet.of​(E e)
    Creates a new enum set, containing only the specified element.
    static <E extends Enum<E>>
    EnumSet<E>
    EnumSet.of​(E e1, E e2)
    Creates a new enum set, containing only the specified elements.
    static <E extends Enum<E>>
    EnumSet<E>
    EnumSet.of​(E start, E... others)
    Creates a new enum set, containing only the specified elements.
    static <E extends Enum<E>>
    EnumSet<E>
    EnumSet.of​(E e1, E e2, E e3)
    Creates a new enum set, containing only the specified elements.
    static <E extends Enum<E>>
    EnumSet<E>
    EnumSet.of​(E e1, E e2, E e3, E e4)
    Creates a new enum set, containing only the specified elements.
    static <E extends Enum<E>>
    EnumSet<E>
    EnumSet.of​(E e1, E e2, E e3, E e4, E e5)
    Creates a new enum set, containing only the specified elements.
    static <E extends Enum<E>>
    EnumSet<E>
    EnumSet.range​(E start, E end)
    Creates an enum set containing all the elements within the range defined by start and end (inclusive).
    Methods in java.util with parameters of type EnumSet
    Modifier and Type Method Description
    static <E extends Enum<E>>
    EnumSet<E>
    EnumSet.complementOf​(EnumSet<E> s)
    Creates an enum set.
    static <E extends Enum<E>>
    EnumSet<E>
    EnumSet.copyOf​(EnumSet<E> s)
    Creates an enum set.