- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 173 for ImmutableSet (0.04 sec)
-
android/guava/src/com/google/common/collect/ImmutableCollection.java
* </ul> * * <h4>Example usage</h4> * * {@snippet : * class Foo { * private static final ImmutableSet<String> RESERVED_CODES = * ImmutableSet.of("AZ", "CQ", "ZX"); * * private final ImmutableSet<String> codes; * * public Foo(Iterable<String> codes) { * this.codes = ImmutableSet.copyOf(codes); * checkArgument(Collections.disjoint(this.codes, RESERVED_CODES)); * } * } * }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 21.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/HashMultimapTest.java
*/ public void testCreate() { HashMultimap<String, Integer> multimap = HashMultimap.create(); multimap.put("foo", 1); multimap.put("bar", 2); multimap.put("foo", 3); assertEquals(ImmutableSet.of(1, 3), multimap.get("foo")); assertEquals(2, multimap.expectedValuesPerKey); } public void testCreateFromMultimap() { HashMultimap<String, Integer> multimap = HashMultimap.create();
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 4.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/HashMultimapTest.java
*/ public void testCreate() { HashMultimap<String, Integer> multimap = HashMultimap.create(); multimap.put("foo", 1); multimap.put("bar", 2); multimap.put("foo", 3); assertEquals(ImmutableSet.of(1, 3), multimap.get("foo")); assertEquals(2, multimap.expectedValuesPerKey); } public void testCreateFromMultimap() { HashMultimap<String, Integer> multimap = HashMultimap.create();
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 4.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/TestUtil.java
* limitations under the License. */ package com.google.common.graph; import static com.google.common.truth.Truth.assertThat; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Iterators; import com.google.errorprone.annotations.CanIgnoreReturnValue; import java.util.Set; import org.jspecify.annotations.NullUnmarked;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Jan 18 02:54:30 UTC 2025 - 4K bytes - Viewed (0) -
guava/src/com/google/common/collect/RegularImmutableSet.java
import java.util.Spliterators; import org.jspecify.annotations.Nullable; /** * Implementation of {@link ImmutableSet} with two or more elements. * * @author Kevin Bourrillion */ @GwtCompatible @SuppressWarnings("serial") // uses writeReplace(), not default serialization final class RegularImmutableSet<E> extends ImmutableSet.CachingAsList<E> { private static final Object[] EMPTY_ARRAY = new Object[0];Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 21:07:18 UTC 2025 - 3.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/DenseImmutableTable.java
@SuppressWarnings("Immutable") // We don't modify this after construction. private final int[] cellColumnIndices; DenseImmutableTable( ImmutableList<Cell<R, C, V>> cellList, ImmutableSet<R> rowSpace, ImmutableSet<C> columnSpace) { @SuppressWarnings("unchecked") @Nullable V[][] array = (@Nullable V[][]) new Object[rowSpace.size()][columnSpace.size()]; this.values = array;Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 21:07:18 UTC 2025 - 9.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java
assertThat(map).isEqualTo(newMap); assertThat(map.entrySet()).isEqualTo(newMap.entrySet()); assertThat(map.keySet()).isEqualTo(newMap.keySet()); Set<Object> expectedValues = ImmutableSet.of(one); Set<Object> actualValues = ImmutableSet.copyOf(map.values()); assertThat(actualValues).isEqualTo(expectedValues); } /** Lookups on the map view shouldn't impact the recency queue. */ public void testAsMapRecency() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 13.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ForwardingSetTest.java
public Set apply(Set delegate) { return wrap(delegate); } }); } public void testEquals() { Set<String> set1 = ImmutableSet.of("one"); Set<String> set2 = ImmutableSet.of("two"); new EqualsTester() .addEqualityGroup(set1, wrap(set1), wrap(set1)) .addEqualityGroup(set2, wrap(set2)) .testEquals(); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 5.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java
multimap.put("foo", 17); multimap.put("bar", 32); multimap.put("foo", 16); return filterKeys(multimap, not(Predicates.in(ImmutableSet.of("foo", "bar")))); } }) .named("Multimaps.filterKeys[SetMultimap, Predicate]") .withFeatures( CollectionSize.ANY,
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Sep 24 22:52:18 UTC 2025 - 28.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/eventbus/SubscriberRegistryTest.java
* limitations under the License. */ package com.google.common.eventbus; import static org.junit.Assert.assertThrows; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Iterators; import java.util.Iterator; import junit.framework.TestCase; import org.jspecify.annotations.NullUnmarked; /** * Tests for {@link SubscriberRegistry}. *Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 5.8K bytes - Viewed (0)