- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for ImmutableEnumSet (0.05 seconds)
-
android/guava/src/com/google/common/collect/Sets.java
public static <E extends Enum<E>> ImmutableSet<E> immutableEnumSet(Iterable<E> elements) { if (elements instanceof ImmutableEnumSet) { return (ImmutableEnumSet<E>) elements; } else if (elements instanceof Collection) { Collection<E> collection = (Collection<E>) elements; if (collection.isEmpty()) { return ImmutableSet.of(); } else { return ImmutableEnumSet.asImmutable(EnumSet.copyOf(collection));
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 81.6K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableSet.java
} else if (elements instanceof EnumSet) { EnumSet<?> clone = ((EnumSet<?>) elements).clone(); ImmutableSet<?> untypedResult = ImmutableEnumSet.asImmutable(clone); /* * The result has the same type argument we started with. We just couldn't express EnumSet<E> * or ImmutableEnumSet<E> along the way because our own <E> isn't <E extends Enum<E>>. *
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Nov 07 16:09:47 GMT 2025 - 35.3K bytes - Click Count (0) -
guava/src/com/google/common/collect/CollectCollectors.java
return this; } } ImmutableSet<E> toImmutableSet() { if (set == null) { return ImmutableSet.of(); } ImmutableSet<E> ret = ImmutableEnumSet.asImmutable(set); set = null; // subsequent manual manipulation of the accumulator mustn't affect ret return ret; } } @GwtIncompatible @SuppressWarnings({"rawtypes", "unchecked"})Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 16.6K bytes - Click Count (0)