- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for asImmutable (0.04 sec)
-
android/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"})
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 16.9K bytes - Viewed (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"})
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 16.6K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableMap.java
// immutable collections are safe for covariant casts // and getting the generics right for EnumMap is difficult to impossible ImmutableMap<K, V> result = ImmutableEnumMap.asImmutable(new EnumMap(enumMap)); return result; } int size = map.size(); switch (size) { case 0: return of(); case 1:
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 18:32:41 UTC 2025 - 16.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSet.java
} } @SuppressWarnings({"rawtypes", "unchecked"}) // necessary to compile against Java 8 private static ImmutableSet copyOfEnumSet(EnumSet<?> enumSet) { return ImmutableEnumSet.asImmutable(EnumSet.copyOf((EnumSet) enumSet)); } ImmutableSet() {} /** Returns {@code true} if the {@code hashCode()} method runs quickly. */ boolean isHashCodeFast() { return false; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 35.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableMap.java
EnumMap<K, V> copy = new EnumMap<>((EnumMap<K, ? extends V>) original); for (Entry<K, V> entry : copy.entrySet()) { checkEntryNotNull(entry.getKey(), entry.getValue()); } return ImmutableEnumMap.asImmutable(copy); } static final Entry<?, ?>[] EMPTY_ENTRY_ARRAY = new Entry<?, ?>[0]; abstract static class IteratorBasedImmutableMap<K, V> extends ImmutableMap<K, V> {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 44.3K bytes - Viewed (0)