Home | History | Annotate | Download | only in util

Lines Matching defs:EnumSet

52  * <P>Like most collection implementations, <tt>EnumSet</tt> is not
62 * Set&lt;MyEnum&gt; s = Collections.synchronizedSet(EnumSet.noneOf(MyEnum.class));
79 public abstract class EnumSet<E extends Enum<E>> extends AbstractSet<E>
94 EnumSet(Class<E>elementType, Enum<?>[] universe) {
108 public static <E extends Enum<E>> EnumSet<E> noneOf(Class<E> elementType) {
129 public static <E extends Enum<E>> EnumSet<E> allOf(Class<E> elementType) {
130 EnumSet<E> result = noneOf(elementType);
150 public static <E extends Enum<E>> EnumSet<E> copyOf(EnumSet<E> s) {
156 * the specified collection is an <tt>EnumSet</tt> instance, this static
157 * factory method behaves identically to {@link #copyOf(EnumSet)}.
165 * <tt>EnumSet</tt> instance and contains no elements
168 public static <E extends Enum<E>> EnumSet<E> copyOf(Collection<E> c) {
169 if (c instanceof EnumSet) {
170 return ((EnumSet<E>)c).clone();
176 EnumSet<E> result = EnumSet.of(first);
193 public static <E extends Enum<E>> EnumSet<E> complementOf(EnumSet<E> s) {
194 EnumSet<E> result = copyOf(s);
213 public static <E extends Enum<E>> EnumSet<E> of(E e) {
214 EnumSet<E> result = noneOf(e.getDeclaringClass());
234 public static <E extends Enum<E>> EnumSet<E> of(E e1, E e2) {
235 EnumSet<E> result = noneOf(e1.getDeclaringClass());
257 public static <E extends Enum<E>> EnumSet<E> of(E e1, E e2, E e3) {
258 EnumSet<E> result = noneOf(e1.getDeclaringClass());
282 public static <E extends Enum<E>> EnumSet<E> of(E e1, E e2, E e3, E e4) {
283 EnumSet<E> result = noneOf(e1.getDeclaringClass());
309 public static <E extends Enum<E>> EnumSet<E> of(E e1, E e2, E e3, E e4,
312 EnumSet<E> result = noneOf(e1.getDeclaringClass());
336 public static <E extends Enum<E>> EnumSet<E> of(E first, E... rest) {
337 EnumSet<E> result = noneOf(first.getDeclaringClass());
358 public static <E extends Enum<E>> EnumSet<E> range(E from, E to) {
361 EnumSet<E> result = noneOf(from.getDeclaringClass());
378 public EnumSet<E> clone() {
380 return (EnumSet<E>) super.clone();
411 * This class is used to serialize all EnumSet instances, regardless of
436 SerializationProxy(EnumSet<E> set) {
445 EnumSet<E> result = EnumSet.noneOf(elementType);