- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 82 for ImmutableCollection (0.25 seconds)
-
guava/src/com/google/common/collect/IndexedImmutableSet.java
return IndexedImmutableSet.this.isPartialView(); } @Override public int size() { return IndexedImmutableSet.this.size(); } @Override ImmutableCollection<E> delegateCollection() { return IndexedImmutableSet.this; } // redeclare to help optimizers with b/310253115 @SuppressWarnings("RedundantOverride") @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 2.6K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableMap.java
} }; } @LazyInit @RetainedWith private transient @Nullable ImmutableCollection<V> values; /** * Returns an immutable collection of the values in this map, in the same order that they appear * in {@link #entrySet}. */ @Override public ImmutableCollection<V> values() { ImmutableCollection<V> result = values; return (result == null) ? values = createValues() : result; }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 02 19:58:40 GMT 2026 - 41.2K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableCollection.java
* A GWT-only class only used by GWT emulations. It is used to consolidate the definitions of method * delegation to save code size. * * @author Hayward Chan */ final class ForwardingImmutableCollection<E> extends ImmutableCollection<E> { final transient Collection<E> delegate; ForwardingImmutableCollection(Collection<E> delegate) { this.delegate = delegate; } @Override public UnmodifiableIterator<E> iterator() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 06 18:32:41 GMT 2025 - 1.8K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableMap.java
} }); } @Override ImmutableSet<K> createKeySet() { return ImmutableSet.unsafeDelegate(delegate.keySet()); } @Override ImmutableCollection<V> createValues() { return ImmutableCollection.unsafeDelegate(delegate.values()); } @Override public int size() { return delegate.size(); } @OverrideCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 06 18:32:41 GMT 2025 - 4K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/SingletonImmutableTable.java
public int size() { return 1; } @Override ImmutableSet<Cell<R, C, V>> createCellSet() { return ImmutableSet.of(cellOf(singleRowKey, singleColumnKey, singleValue)); } @Override ImmutableCollection<V> createValues() { return ImmutableSet.of(singleValue); } @Override @J2ktIncompatible @GwtIncompatible Object writeReplace() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 21:07:18 GMT 2025 - 2.4K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/UnmodifiableIterator.java
import org.jspecify.annotations.Nullable; /** * An iterator that does not support {@link #remove}. * * <p>{@code UnmodifiableIterator} is used primarily in conjunction with implementations of {@link * ImmutableCollection}, such as {@link ImmutableList}. You can, however, convert an existing * iterator to an {@code UnmodifiableIterator} using {@link Iterators#unmodifiableIterator}. * * @author Jared Levy * @since 2.0 */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 1.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/LenientSerializableTester.java
static <E> Collection<E> reserializeAndAssertElementsEqual(Collection<E> original) { Collection<E> copy = reserialize(original); assertTrue(elementsEqual(original, copy)); assertTrue(copy instanceof ImmutableCollection); return copy; } private LenientSerializableTester() {}
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 2.6K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableList.java
*/ public static <E> ImmutableList<E> copyOf(Collection<? extends E> elements) { if (elements instanceof ImmutableCollection) { @SuppressWarnings("unchecked") // all supported methods are covariant ImmutableList<E> list = ((ImmutableCollection<E>) elements).asList(); return list.isPartialView() ? asImmutableList(list.toArray()) : list; } return construct(elements.toArray());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 27.5K bytes - Click Count (0) -
android/guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java
assertNotInstantiable(new TypeToken<ImmutableMultiset<EmptyEnum>>() {}); } public void testImmutableCollection() { assertFreshInstance(new TypeToken<ImmutableCollection<String>>() {}); assertNotInstantiable(new TypeToken<ImmutableCollection<EmptyEnum>>() {}); } public void testImmutableMap() { assertFreshInstance(new TypeToken<ImmutableMap<String, Integer>>() {}); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 17.4K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableMap.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 15:51:42 GMT 2026 - 17.2K bytes - Click Count (0)