- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 58 for ImmutableCollection (0.06 sec)
-
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableCollection.java
import java.util.function.Predicate; import org.jspecify.annotations.Nullable; /** * GWT emulated version of {@link ImmutableCollection}. * * @author Jesse Wilson */ @SuppressWarnings("serial") // we're overriding default serialization public abstract class ImmutableCollection<E> extends AbstractCollection<E> implements Serializable { static final int SPLITERATOR_CHARACTERISTICS =
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 18:32:41 UTC 2025 - 5.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableCollection.java
Collection<?> collection = (Collection<?>) elements; ensureRoomFor(collection.size()); if (collection instanceof ImmutableCollection) { ImmutableCollection<?> immutableCollection = (ImmutableCollection<?>) collection; size = immutableCollection.copyIntoArray(contents, size); return this; } } super.addAll(elements); return this; } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 21.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableCollection.java
} /** * Returns a newly-created {@code ImmutableCollection} of the appropriate type, containing the * elements provided to this builder. * * <p>Note that each builder class covariantly returns the appropriate type of {@code * ImmutableCollection} from this method. */ public abstract ImmutableCollection<E> build(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 18.7K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSet.java
* java.util.TreeSet}. * * @see ImmutableSortedSet * @author Hayward Chan */ @SuppressWarnings("serial") // Serialization only done in GWT. public abstract class ImmutableSet<E> extends ImmutableCollection<E> implements Set<E> { ImmutableSet() {} public static <E> Collector<E, ?, ImmutableSet<E>> toImmutableSet() { return CollectCollectors.toImmutableSet(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 18:32:41 UTC 2025 - 8.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableCollectionTest.java
/** * Tests for {@code ImmutableCollection}. * * @author Louis Wasserman */ @NullUnmarked public class ImmutableCollectionTest extends TestCase { public void testCapacityExpansion() { assertEquals(1, ImmutableCollection.Builder.expandedCapacity(0, 1)); assertEquals(2, ImmutableCollection.Builder.expandedCapacity(0, 2)); assertEquals(2, ImmutableCollection.Builder.expandedCapacity(1, 2)); assertEquals(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 1.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/RegularImmutableAsList.java
class RegularImmutableAsList<E> extends ImmutableAsList<E> { private final ImmutableCollection<E> delegate; private final ImmutableList<? extends E> delegateList; RegularImmutableAsList(ImmutableCollection<E> delegate, ImmutableList<? extends E> delegateList) { this.delegate = delegate; this.delegateList = delegateList; } RegularImmutableAsList(ImmutableCollection<E> delegate, Object[] array) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 2.8K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableMultimap.java
@Override public ImmutableCollection<Entry<K, V>> entries() { return (ImmutableCollection<Entry<K, V>>) super.entries(); } @Override ImmutableCollection<Entry<K, V>> createEntries() { return new EntryCollection<>(this); } private static final class EntryCollection<K, V> extends ImmutableCollection<Entry<K, V>> { @Weak final ImmutableMultimap<K, V> multimap;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 28.6K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AggregateFuture.java
*/ @LazyInit private @Nullable ImmutableCollection<? extends ListenableFuture<? extends InputT>> futures; private final boolean allMustSucceed; private final boolean collectsValues; AggregateFuture( ImmutableCollection<? extends ListenableFuture<? extends InputT>> futures, boolean allMustSucceed, boolean collectsValues) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 16K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/CollectionFuture.java
import static com.google.common.collect.Lists.newArrayListWithCapacity; import static java.util.Collections.unmodifiableList; import com.google.common.annotations.GwtCompatible; import com.google.common.collect.ImmutableCollection; import com.google.common.collect.Lists; import com.google.errorprone.annotations.concurrent.LazyInit; import com.google.j2objc.annotations.RetainedLocalRef; import java.util.Collections; import java.util.List;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 3.9K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java
if (elements instanceof ImmutableCollection) { /* * TODO: When given an ImmutableList that's a sublist, copy the referenced * portion of the array into a new array to save space? */ @SuppressWarnings("unchecked") // all supported methods are covariant ImmutableCollection<E> list = (ImmutableCollection<E>) elements; return list.asList(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 18:32:41 UTC 2025 - 11.1K bytes - Viewed (0)