| java.lang.Object | |||
| ↳ | java.util.AbstractCollection<E> | ||
| ↳ | java.util.AbstractSet<E> | ||
| ↳ | java.util.EnumSet<E extends java.lang.Enum<E>> | ||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates an enum set.
| |||||||||||
Creates a new enum set with the same elements as those contained in this
enum set.
| |||||||||||
Creates an enum set.
| |||||||||||
Creates an enum set.
| |||||||||||
Creates an enum set.
| |||||||||||
Creates an empty enum set.
| |||||||||||
Creates a new enum set, containing only the specified elements.
| |||||||||||
Creates a new enum set, containing only the specified element.
| |||||||||||
Creates a new enum set, containing only the specified elements.
| |||||||||||
Creates a new enum set, containing only the specified elements.
| |||||||||||
Creates a new enum set, containing only the specified elements.
| |||||||||||
Creates a new enum set, containing only the specified elements.
| |||||||||||
Creates an enum set containing all the elements within the range defined
by start and end (inclusive).
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.util.AbstractSet
| |||||||||||
From class java.util.AbstractCollection
| |||||||||||
From class java.lang.Object
| |||||||||||
From interface java.lang.Iterable
| |||||||||||
From interface java.util.Collection
| |||||||||||
From interface java.util.Set
| |||||||||||
Creates an enum set. Element is contained in this enum set if and only if it is a member of the specified element type.
| elementType | the class object for the elements contained |
|---|
| NullPointerException | if the specified elementType is null |
|---|
Creates a new enum set with the same elements as those contained in this enum set.
Creates an enum set. All the contained elements complement those from the specified enum set.
| s | the specified enum set |
|---|
| NullPointerException | if the specified enum set is null |
|---|
Creates an enum set. All the contained elements are of type Class
| s | the enum set from which to copy |
|---|
| NullPointerException | if the specified enum set is null |
|---|
Creates an enum set. The contained elements are the same as those contained in collection c. If c is an enum set, invoking this method is the same as invoking copyOf(EnumSet).
| c | the collection from which to copy |
|---|
| IllegalArgumentException | if c is not an enum set and contains no elements at all |
|---|---|
| NullPointerException | if the specified collection is null |
Creates an empty enum set. The permitted elements are of type Class
| elementType | the class object for the elements contained |
|---|
| NullPointerException | if the specified elementType is null |
|---|
Creates a new enum set, containing only the specified elements. It receives arbitrary number of elements, and runs slower than those only receive fixed number of elements.
| start | the first initially contained element |
|---|---|
| others | the other initially contained elements |
| NullPointerException | if any of the specified elements is null |
|---|
Creates a new enum set, containing only the specified element. There are six overloadings of the method. They accept from one to five elements respectively. The sixth one receives arbitrary number of elements, and runs slower than those only receive fixed number of elements.
| e | the initially contained element |
|---|
| NullPointerException | if the specified element is null |
|---|
Creates a new enum set, containing only the specified elements. There are six overloadings of the method. They accept from one to five elements respectively. The sixth one receives arbitrary number of elements, and runs slower than those only receive fixed number of elements.
| e1 | the initially contained element |
|---|---|
| e2 | another initially contained element |
| e3 | another initially contained element |
| e4 | another initially contained element |
| e5 | another initially contained element |
| NullPointerException | if any of the specified elements is null |
|---|
Creates a new enum set, containing only the specified elements. There are six overloadings of the method. They accept from one to five elements respectively. The sixth one receives arbitrary number of elements, and runs slower than those only receive fixed number of elements.
| e1 | the initially contained element |
|---|---|
| e2 | another initially contained element |
| e3 | another initially contained element |
| NullPointerException | if any of the specified elements is null |
|---|
Creates a new enum set, containing only the specified elements. There are six overloadings of the method. They accept from one to five elements respectively. The sixth one receives arbitrary number of elements, and runs slower than those only receive fixed number of elements.
| e1 | the initially contained element |
|---|---|
| e2 | another initially contained element |
| e3 | another initially contained element |
| e4 | another initially contained element |
| NullPointerException | if any of the specified elements is null |
|---|
Creates a new enum set, containing only the specified elements. There are six overloadings of the method. They accept from one to five elements respectively. The sixth one receives arbitrary number of elements, and runs slower than those only receive fixed number of elements.
| e1 | the initially contained element |
|---|---|
| e2 | another initially contained element |
| NullPointerException | if any of the specified elements is null |
|---|
Creates an enum set containing all the elements within the range defined by start and end (inclusive). All the elements must be in order.
| start | the element used to define the beginning of the range |
|---|---|
| end | the element used to define the end of the range |
| NullPointerException | if any one of start or end is null |
|---|---|
| IllegalArgumentException | if start is behind end |