JavaTM 2 Platform
Standard Ed. 5.0

Uses of Class
java.util.EnumSet

Packages that use EnumSet
java.util Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array). 
 

Uses of EnumSet in java.util
 

Methods in java.util that return EnumSet
static
Enum>
EnumSet
EnumSet.allOf(Class elementType)
          Creates an enum set containing all of the elements in the specified element type.
 EnumSet<E> EnumSet.clone()
          Returns a copy of this set.
static
Enum>
EnumSet
EnumSet.complementOf(EnumSet s)
          Creates an enum set with the same element type as the specified enum set, initially containing all the elements of this type that are not contained in the specified set.
static
Enum>
EnumSet
EnumSet.copyOf(Collection c)
          Creates an enum set initialized from the specified collection.
static
Enum>
EnumSet
EnumSet.copyOf(EnumSet s)
          Creates an enum set with the same element type as the specified enum set, initially containing the same elements (if any).
static
Enum>
EnumSet
EnumSet.noneOf(Class elementType)
          Creates an empty enum set with the specified element type.
static
Enum>
EnumSet
EnumSet.of(E e)
          Creates an enum set initially containing the specified element.
static
Enum>
EnumSet
EnumSet.of(E first, E... rest)
          Creates an enum set initially containing the specified elements.
static
Enum>
EnumSet
EnumSet.of(E e1, E e2)
          Creates an enum set initially containing the specified elements.
static
Enum>
EnumSet
EnumSet.of(E e1, E e2, E e3)
          Creates an enum set initially containing the specified elements.
static
Enum>
EnumSet
EnumSet.of(E e1, E e2, E e3, E e4)
          Creates an enum set initially containing the specified elements.
static
Enum>
EnumSet
EnumSet.of(E e1, E e2, E e3, E e4, E e5)
          Creates an enum set initially containing the specified elements.
static
Enum>
EnumSet
EnumSet.range(E from, E to)
          Creates an enum set initially containing all of the elements in the range defined by the two specified endpoints.
 

Methods in java.util with parameters of type EnumSet
static
Enum>
EnumSet
EnumSet.complementOf(EnumSet s)
          Creates an enum set with the same element type as the specified enum set, initially containing all the elements of this type that are not contained in the specified set.
static
Enum>
EnumSet
EnumSet.copyOf(EnumSet s)
          Creates an enum set with the same element type as the specified enum set, initially containing the same elements (if any).
 


JavaTM 2 Platform
Standard Ed. 5.0

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright © 2004, 2010 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.