- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 58 for ImmutableCollection (0.07 sec)
-
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 */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 1.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSetMultimap.java
Collection<? extends Map.Entry<K, ImmutableCollection.Builder<V>>> mapEntries, @Nullable Comparator<? super V> valueComparator) { if (mapEntries.isEmpty()) { return of(); } ImmutableMap.Builder<K, ImmutableSet<V>> builder = new ImmutableMap.Builder<>(mapEntries.size()); int size = 0; for (Entry<K, ImmutableCollection.Builder<V>> entry : mapEntries) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 25.6K bytes - Viewed (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() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 14:59:07 UTC 2025 - 2.4K bytes - Viewed (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() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 18:32:41 UTC 2025 - 1.8K bytes - Viewed (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>>() {}); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 17.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableSetMultimap.java
Collection<? extends Map.Entry<K, ImmutableCollection.Builder<V>>> mapEntries, @Nullable Comparator<? super V> valueComparator) { if (mapEntries.isEmpty()) { return of(); } ImmutableMap.Builder<K, ImmutableSet<V>> builder = new ImmutableMap.Builder<>(mapEntries.size()); int size = 0; for (Entry<K, ImmutableCollection.Builder<V>> entry : mapEntries) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 25.8K bytes - Viewed (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() {}
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 2.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableListMultimap.java
Collection<? extends Map.Entry<K, ImmutableCollection.Builder<V>>> mapEntries, @Nullable Comparator<? super V> valueComparator) { if (mapEntries.isEmpty()) { return of(); } ImmutableMap.Builder<K, ImmutableList<V>> builder = new ImmutableMap.Builder<>(mapEntries.size()); int size = 0; for (Entry<K, ImmutableCollection.Builder<V>> entry : mapEntries) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 18.8K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableMultiset.java
import java.util.stream.Collector; import org.jspecify.annotations.Nullable; /** * A {@link Multiset} whose contents will never change, with many other important properties * detailed at {@link ImmutableCollection}. * * <p><b>Grouped iteration.</b> In all current implementations, duplicate elements always appear * consecutively when iterating. Elements iterate in order by the <i>first</i> appearance of that
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 20.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/package-info.java
* * <p>The classes in this package include: * * <h2>Immutable collections</h2> * * These are collections whose contents will never change. They also offer a few additional * guarantees (see {@link ImmutableCollection} for details). Implementations are available for both * the JDK collection types and the Guava collection types (listed below). * * <h2>Collection types</h2> * * <dl> * <dt>{@link Multimap}
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 5K bytes - Viewed (0)