Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 267 for keySet (0.13 sec)

  1. android/guava/src/com/google/common/graph/DirectedGraphConnections.java

            predecessorCount,
            successorCount);
      }
    
      @Override
      public Set<N> adjacentNodes() {
        if (orderedNodeConnections == null) {
          return Collections.unmodifiableSet(adjacentNodeValues.keySet());
        } else {
          return new AbstractSet<N>() {
            @Override
            public UnmodifiableIterator<N> iterator() {
              Iterator<NodeConnection<N>> nodeConnections = orderedNodeConnections.iterator();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 18K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

        for (Segment<K, V, E, S> segment : segments) {
          segment.clear();
        }
      }
    
      @LazyInit @CheckForNull transient Set<K> keySet;
    
      @Override
      public Set<K> keySet() {
        Set<K> ks = keySet;
        return (ks != null) ? ks : (keySet = new KeySet());
      }
    
      @LazyInit @CheckForNull transient Collection<V> values;
    
      @Override
      public Collection<V> values() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/SplitterTest.java

        assertThat(m.keySet()).containsExactly("boy", "girl", "cat", "dog").inOrder();
        assertThat(m)
            .isEqualTo(ImmutableMap.of("boy", "tom", "girl", "tina", "cat", "kitty", "dog", "tommy"));
    
        // try in a different order
        m = COMMA_SPLITTER.withKeyValueSeparator(":").split("girl:tina,boy:tom,dog:tommy,cat:kitty");
    
        assertThat(m.keySet()).containsExactly("girl", "boy", "dog", "cat").inOrder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableBiMap.java

       * they were inserted into the builder. For example, in the above example, {@code
       * WORD_TO_INT.entrySet()} is guaranteed to iterate over the entries in the order {@code "one"=1,
       * "two"=2, "three"=3}, and {@code keySet()} and {@code values()} respect the same order. If you
       * want a different order, consider using {@link #orderEntriesByValue(Comparator)}, which changes
       * this builder to sort entries by value.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java

        assertTrue(map.asMap().containsValue(0L));
    
        map.removeAllZeros();
        assertFalse(map.asMap().containsValue(0L));
        assertEquals(ITERATIONS / 2, map.size());
        assertEquals(nonZeroKeys, map.asMap().keySet());
      }
    
      public void testClear() {
        AtomicLongMap<Object> map = AtomicLongMap.create();
        for (int i = 0; i < ITERATIONS; i++) {
          map.put(new Object(), i);
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java

            if (metadata.isSnapshot()) {
                Metadata prevMetadata = metadata.getMetadata();
    
                for (ArtifactRepository repository : previousMetadata.keySet()) {
                    Metadata m = previousMetadata.get(repository);
                    if (repository.equals(selected)) {
                        if (m.getVersioning() == null) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

      }
    
      public void testKeySet() {
        ImmutableBiMap<String, Integer> bimap =
            ImmutableBiMap.copyOf(ImmutableMap.of("one", 1, "two", 2, "three", 3, "four", 4));
        Set<String> keys = bimap.keySet();
        assertEquals(newHashSet("one", "two", "three", "four"), keys);
        assertThat(keys).containsExactly("one", "two", "three", "four").inOrder();
      }
    
      public void testValues() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        map.put(three, four);
        Iterator<?> i = map.entrySet().iterator();
        i.next();
        i.remove();
        assertNotified(listener, three, four, RemovalCause.EXPLICIT);
    
        map.put(four, five);
        i = map.keySet().iterator();
        i.next();
        i.remove();
        assertNotified(listener, four, five, RemovalCause.EXPLICIT);
    
        map.put(five, six);
        i = map.values().iterator();
        i.next();
        i.remove();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 110.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        map.put(three, four);
        Iterator<?> i = map.entrySet().iterator();
        i.next();
        i.remove();
        assertNotified(listener, three, four, RemovalCause.EXPLICIT);
    
        map.put(four, five);
        i = map.keySet().iterator();
        i.next();
        i.remove();
        assertNotified(listener, four, five, RemovalCause.EXPLICIT);
    
        map.put(five, six);
        i = map.values().iterator();
        i.next();
        i.remove();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 112.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

      }
    
      @AndroidIncompatible // Android forbids null parent ClassLoader
      public void testClassPathEntries_emptyURLClassLoader_noParent() {
        assertThat(ClassPath.getClassPathEntries(new URLClassLoader(new URL[0], null)).keySet())
            .isEmpty();
      }
    
      @AndroidIncompatible // Android forbids null parent ClassLoader
      public void testClassPathEntries_urlClassLoader_noParent() throws Exception {
        URL url1 = new URL("file:/a");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 25K bytes
    - Viewed (0)
Back to top