org.jboss.util
Class EnumSet<E extends Enum>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by 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
<E extends Enum<E>>
EnumSet<E>
allOf(Class<E> enumType)
           
 EnumSet<E> clone()
           
static
<E extends Enum<E>>
EnumSet<E>
complementOf(EnumSet<E> s)
           
static
<E extends Enum<E>>
EnumSet<E>
copyOf(Collection<E> c)
           
static
<E extends Enum<E>>
EnumSet<E>
copyOf(EnumSet<E> s)
           
 Iterator<E> iterator()
           
static
<E extends Enum<E>>
EnumSet<E>
noneOf(Class<E> enumType)
           
static
<E extends Enum<E>>
EnumSet<E>
of(E e)
           
static
<E extends Enum<E>>
EnumSet<E>
of(E first, E... rest)
           
static
<E extends Enum<E>>
EnumSet<E>
of(E e1, E e2)
           
static
<E extends Enum<E>>
EnumSet<E>
of(E e1, E e2, E e3)
           
static
<E extends Enum<E>>
EnumSet<E>
of(E e1, E e2, E e3, E e4)
           
static
<E extends Enum<E>>
EnumSet<E>
of(E e1, E e2, E e3, E e4, E e5)
           
static
<E extends Enum<E>>
EnumSet<E>
range(E from, E to)
           
 int size()
           
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray
 

Method Detail

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.