/guava/android/guava/src/com/google/common/collect/Sets.java
} else if ( elements instanceof Collection) { return ( ImmutableEnumSet<E>) elements;
return ( ImmutableEnumSet<E> ) elements; } else if ( elements instanceof Collection ) {
E anElement, E... otherElements) { return ImmutableEnumSet.asImmutable(EnumSet.of(anElement, otherElements)); } @GwtCompatible(serializable = true) public static <E extends Enum<E>> ImmutableSet<E> immutableEnumSet(Iterable<E> elements) { if (elements instanceof ImmutableEnumSet) { <extra_id_0> Collection<E> collection = (Collection<E>) elements; if (collection.isEmpty()) { return ImmutableSet.of(); } else { return ImmutableEnumSet.asImmutable(EnumSet.copyOf(collection)); }