Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 216 for keySet (0.08 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/BiMapRemoveTester.java

        getMap().remove(k0());
        expectMissing(e0());
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testRemoveKeyFromKeySetRemovesFromInverse() {
        getMap().keySet().remove(k0());
        expectMissing(e0());
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testRemoveFromValuesRemovesFromInverse() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeySetTester.java

        for (Entry<K, V> entry : getSampleElements()) {
          assertTrue(multimap().keySet().contains(entry.getKey()));
        }
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(ALLOWS_NULL_KEYS)
      public void testKeySetContainsNullKeyPresent() {
        initMultimapWithNullKey();
        assertTrue(multimap().keySet().contains(null));
      }
    
      @MapFeature.Require(ALLOWS_NULL_KEY_QUERIES)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableSortedMap.java

      private final transient RegularImmutableSortedSet<K> keySet;
      private final transient ImmutableList<V> valueList;
      @CheckForNull private transient ImmutableSortedMap<K, V> descendingMap;
    
      ImmutableSortedMap(RegularImmutableSortedSet<K> keySet, ImmutableList<V> valueList) {
        this(keySet, valueList, null);
      }
    
      ImmutableSortedMap(
          RegularImmutableSortedSet<K> keySet,
          ImmutableList<V> valueList,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/SynchronizedMapTest.java

        create().putAll(new HashMap<String, Integer>());
      }
    
      public void testKeySet() {
        Map<String, Integer> map = create();
        Set<String> keySet = map.keySet();
        assertTrue(keySet instanceof SynchronizedSet);
        assertSame(mutex, ((SynchronizedSet<?>) keySet).mutex);
      }
    
      public void testValues() {
        Map<String, Integer> map = create();
        Collection<Integer> values = map.values();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 06 17:23:04 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/CacheEvictionTest.java

        CacheTesting.warmUp(cache, 0, 10);
        Set<Integer> keySet = cache.asMap().keySet();
        assertThat(keySet).containsExactly(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
    
        // re-order
        getAll(cache, asList(0, 1, 2));
        CacheTesting.drainRecencyQueues(cache);
        assertThat(keySet).containsExactly(3, 4, 5, 6, 7, 8, 9, 0, 1, 2);
    
        // evict 3, 4, 5
        getAll(cache, asList(10, 11, 12));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 15K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

          return delegate;
        }
    
        @Override
        public Set<K> keySet() {
          return new ForwardingSet<K>() {
            @Override
            protected Set<K> delegate() {
              return delegate.keySet();
            }
    
            @Override
            public Iterator<K> iterator() {
              return Iterators.unmodifiableIterator(delegate.keySet().iterator());
            }
    
            @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java

        SortedSet<@Nullable String> keySet = multimap.keySet();
    
        assertEquals(null, keySet.first());
        assertEquals("google", keySet.last());
        assertEquals(StringLength.COMPARATOR, keySet.comparator());
        assertEquals(Sets.<@Nullable String>newHashSet(null, "tree"), keySet.headSet("yahoo"));
        assertEquals(newHashSet("google"), keySet.tailSet("yahoo"));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

      protected final void assertInvariants(Map<K, V> map) {
        Set<K> keySet = map.keySet();
        Collection<V> valueCollection = map.values();
        Set<Entry<K, V>> entrySet = map.entrySet();
    
        assertEquals(map.size() == 0, map.isEmpty());
        assertEquals(map.size(), keySet.size());
        assertEquals(keySet.size() == 0, keySet.isEmpty());
        assertEquals(!keySet.isEmpty(), keySet.iterator().hasNext());
    
        int expectedKeySetHash = 0;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

      protected final void assertInvariants(Map<K, V> map) {
        Set<K> keySet = map.keySet();
        Collection<V> valueCollection = map.values();
        Set<Entry<K, V>> entrySet = map.entrySet();
    
        assertEquals(map.size() == 0, map.isEmpty());
        assertEquals(map.size(), keySet.size());
        assertEquals(keySet.size() == 0, keySet.isEmpty());
        assertEquals(!keySet.isEmpty(), keySet.iterator().hasNext());
    
        int expectedKeySetHash = 0;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/AbstractImmutableSortedMapMapInterfaceTest.java

        assertEquals("[" + joiner.join(map.keySet()) + "]", map.keySet().toString());
        assertEquals("[" + joiner.join(map.values()) + "]", map.values().toString());
    
        assertEquals(newHashSet(map.entrySet()), map.entrySet());
        assertEquals(newHashSet(map.keySet()), map.keySet());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top