java.util

Class EnumSet<T>

public class EnumSet<T extends Enum<T>> extends AbstractSet<T> implements Cloneable, Serializable

Since: 1.5

Method Summary
booleanadd(T val)
booleanaddAll(Collection<? extends T> c)
static <T extends Enum<T>> EnumSet<T>allOf(Class<T> eltType)
voidclear()
EnumSet<T>clone()
static <T extends Enum<T>> EnumSet<T>complementOf(EnumSet<T> other)
booleancontains(Object o)
booleancontainsAll(Collection<?> c)
static <T extends Enum<T>> EnumSet<T>copyOf(EnumSet<T> other)
static <T extends Enum<T>> EnumSet<T>copyOf(Collection<T> other)
Iterator<T>iterator()
static <T extends Enum<T>> EnumSet<T>noneOf(Class<T> eltType)
static <T extends Enum<T>> EnumSet<T>of(T first)
static <T extends Enum<T>> EnumSet<T>of(T first, T second)
static <T extends Enum<T>> EnumSet<T>of(T first, T second, T third)
static <T extends Enum<T>> EnumSet<T>of(T first, T second, T third, T fourth)
static <T extends Enum<T>> EnumSet<T>of(T first, T second, T third, T fourth, T fifth)
static <T extends Enum<T>> EnumSet<T>of(T first, T... rest)
static <T extends Enum<T>> EnumSet<T>range(T from, T to)
booleanremove(Object o)
booleanremoveAll(Collection<?> c)
booleanretainAll(Collection<?> c)
intsize()

Method Detail

add

public boolean add(T val)

addAll

public boolean addAll(Collection<? extends T> c)

allOf

public static <T extends Enum<T>> EnumSet<T> allOf(Class<T> eltType)

clear

public void clear()

clone

public EnumSet<T> clone()

complementOf

public static <T extends Enum<T>> EnumSet<T> complementOf(EnumSet<T> other)

contains

public boolean contains(Object o)

containsAll

public boolean containsAll(Collection<?> c)

copyOf

public static <T extends Enum<T>> EnumSet<T> copyOf(EnumSet<T> other)

copyOf

public static <T extends Enum<T>> EnumSet<T> copyOf(Collection<T> other)

iterator

public Iterator<T> iterator()

noneOf

public static <T extends Enum<T>> EnumSet<T> noneOf(Class<T> eltType)

of

public static <T extends Enum<T>> EnumSet<T> of(T first)

of

public static <T extends Enum<T>> EnumSet<T> of(T first, T second)

of

public static <T extends Enum<T>> EnumSet<T> of(T first, T second, T third)

of

public static <T extends Enum<T>> EnumSet<T> of(T first, T second, T third, T fourth)

of

public static <T extends Enum<T>> EnumSet<T> of(T first, T second, T third, T fourth, T fifth)

of

public static <T extends Enum<T>> EnumSet<T> of(T first, T... rest)

range

public static <T extends Enum<T>> EnumSet<T> range(T from, T to)

remove

public boolean remove(Object o)

removeAll

public boolean removeAll(Collection<?> c)

retainAll

public boolean retainAll(Collection<?> c)

size

public int size()