Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 207 for KeySet (0.89 sec)

  1. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 09 20:10:38 UTC 2018
    - 3K bytes
    - Viewed (0)
  2. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 09 20:10:38 UTC 2018
    - 3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/EnumBiMapTest.java

        EnumBiMap<Currency, Country> bimap = EnumBiMap.create(map);
    
        Iterator<Currency> iter = bimap.keySet().iterator();
        assertEquals(Currency.DOLLAR, iter.next());
        iter.remove();
    
        // forward map ordered by currency
        assertThat(bimap.keySet()).containsExactly(Currency.FRANC, Currency.PESO).inOrder();
        // forward map ordered by currency (even for country values)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 26 16:35:21 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ForwardingMap.java

        return delegate().put(key, value);
      }
    
      @Override
      public void putAll(Map<? extends K, ? extends V> map) {
        delegate().putAll(map);
      }
    
      @Override
      public Set<K> keySet() {
        return delegate().keySet();
      }
    
      @Override
      public Collection<V> values() {
        return delegate().values();
      }
    
      @Override
      public Set<Entry<K, V>> entrySet() {
        return delegate().entrySet();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableMapKeySet.java

    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import java.io.Serializable;
    import javax.annotation.CheckForNull;
    
    /**
     * {@code keySet()} implementation for {@link ImmutableMap}.
     *
     * @author Jesse Wilson
     * @author Kevin Bourrillion
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/AbstractBiMap.java

      }
    
      @LazyInit @CheckForNull private transient Set<K> keySet;
    
      @Override
      public Set<K> keySet() {
        Set<K> result = keySet;
        return (result == null) ? keySet = new KeySet() : result;
      }
    
      @WeakOuter
      private class KeySet extends ForwardingSet<K> {
        @Override
        protected Set<K> delegate() {
          return delegate.keySet();
        }
    
        @Override
        public void clear() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Aug 24 01:40:03 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  7. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsKeyTester.java

        assertTrue(multimap().containsKey(k0()));
      }
    
      public void testContainsKeyNo() {
        assertFalse(multimap().containsKey(k3()));
      }
    
      public void testContainsKeysFromKeySet() {
        for (K k : multimap().keySet()) {
          assertTrue(multimap().containsKey(k));
        }
      }
    
      public void testContainsKeyAgreesWithGet() {
        for (K k : sampleKeys()) {
          assertEquals(!multimap().get(k).isEmpty(), multimap().containsKey(k));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Nov 16 17:41:24 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/StandardTable.java

              }
            }
            return endOfData();
          }
        }
    
        @Override
        Set<R> createKeySet() {
          return new KeySet();
        }
    
        @WeakOuter
        private class KeySet extends Maps.KeySet<R, V> {
          KeySet() {
            super(Column.this);
          }
    
          @Override
          public boolean contains(@CheckForNull Object obj) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 30.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/escape/ArrayBasedEscaperMap.java

        checkNotNull(map); // GWT specific check (do not optimize)
        if (map.isEmpty()) {
          return EMPTY_REPLACEMENT_ARRAY;
        }
        char max = Collections.max(map.keySet());
        char[][] replacements = new char[max + 1][];
        for (Character c : map.keySet()) {
          replacements[c] = map.get(c).toCharArray();
        }
        return replacements;
      }
    
      // Immutable empty array for when there are no replacements.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 3.2K bytes
    - Viewed (0)
Back to top