org.jboss.util
Class EnumSet<E extends Enum>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
org.jboss.util.EnumSet<E>
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<E>, Collection<E>, Set<E>
public class EnumSet<E extends Enum>
- extends AbstractSet<E>
- implements Cloneable, Serializable
EnumSet.
- Version:
- $Revision: 227 $
- Author:
- Adrian Brock
- See Also:
- Serialized Form
Method Summary |
boolean |
add(E o)
|
static
|
allOf(Class<E> enumType)
|
EnumSet<E> |
clone()
|
static
|
complementOf(EnumSet<E> s)
|
static
|
copyOf(Collection<E> c)
|
static
|
copyOf(EnumSet<E> s)
|
Iterator<E> |
iterator()
|
static
|
noneOf(Class<E> enumType)
|
static
|
of(E e)
|
static
|
of(E first,
E... rest)
|
static
|
of(E e1,
E e2)
|
static
|
of(E e1,
E e2,
E e3)
|
static
|
of(E e1,
E e2,
E e3,
E e4)
|
static
|
of(E e1,
E e2,
E e3,
E e4,
E e5)
|
static
|
range(E from,
E to)
|
int |
size()
|
noneOf
public static <E extends Enum<E>> EnumSet<E> noneOf(Class<E> enumType)
allOf
public static <E extends Enum<E>> EnumSet<E> allOf(Class<E> enumType)
copyOf
public static <E extends Enum<E>> EnumSet<E> copyOf(EnumSet<E> s)
copyOf
public static <E extends Enum<E>> EnumSet<E> copyOf(Collection<E> c)
complementOf
public static <E extends Enum<E>> EnumSet<E> complementOf(EnumSet<E> s)
of
public static <E extends Enum<E>> EnumSet<E> of(E e)
of
public static <E extends Enum<E>> EnumSet<E> of(E e1,
E e2)
of
public static <E extends Enum<E>> EnumSet<E> of(E e1,
E e2,
E e3)
of
public static <E extends Enum<E>> EnumSet<E> of(E e1,
E e2,
E e3,
E e4)
of
public static <E extends Enum<E>> EnumSet<E> of(E e1,
E e2,
E e3,
E e4,
E e5)
of
public static <E extends Enum<E>> EnumSet<E> of(E first,
E... rest)
range
public static <E extends Enum<E>> EnumSet<E> range(E from,
E to)
clone
public EnumSet<E> clone()
- Overrides:
clone
in class Object
iterator
public Iterator<E> iterator()
- Specified by:
iterator
in interface Iterable<E extends Enum>
- Specified by:
iterator
in interface Collection<E extends Enum>
- Specified by:
iterator
in interface Set<E extends Enum>
- Specified by:
iterator
in class AbstractCollection<E extends Enum>
size
public int size()
- Specified by:
size
in interface Collection<E extends Enum>
- Specified by:
size
in interface Set<E extends Enum>
- Specified by:
size
in class AbstractCollection<E extends Enum>
add
public boolean add(E o)
- Specified by:
add
in interface Collection<E extends Enum>
- Specified by:
add
in interface Set<E extends Enum>
- Overrides:
add
in class AbstractCollection<E extends Enum>
Copyright © 2005-2007 JBoss, a division of Red Hat, Inc. All Rights Reserved.