Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 361 - 370 of 514 for getKeys (0.06 seconds)

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

      public void testAsMapGet() {
        for (K key : sampleKeys()) {
          List<V> expectedValues = new ArrayList<>();
          for (Entry<K, V> entry : getSampleElements()) {
            if (entry.getKey().equals(key)) {
              expectedValues.add(entry.getValue());
            }
          }
    
          Collection<V> collection = multimap().asMap().get(key);
          if (expectedValues.isEmpty()) {
            assertNull(collection);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 5.8K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/ObjectCountLinkedHashMap.java

        super(expectedSize, loadFactor);
      }
    
      ObjectCountLinkedHashMap(ObjectCountHashMap<K> map) {
        init(map.size(), DEFAULT_LOAD_FACTOR);
        for (int i = map.firstIndex(); i != -1; i = map.nextIndex(i)) {
          put(map.getKey(i), map.getValue(i));
        }
      }
    
      @Override
      void init(int expectedSize, float loadFactor) {
        super.init(expectedSize, loadFactor);
        firstEntry = ENDPOINT;
        lastEntry = ENDPOINT;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 5.9K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/cache/LocalCacheMapComputeTest.java

                throw new UncheckedExecutionException(e);
              }
            });
    
        CacheTesting.checkEmpty(cache);
        for (RemovalNotification<String, String> entry : notifications) {
          assertThat(entry.getKey()).isNotNull();
          assertThat(entry.getValue()).isNotNull();
        }
      }
    
      public void testComputeExceptionally() {
        assertThrows(
            RuntimeException.class,
            () ->
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 6.4K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb/DfsImpl.java

                log.trace("Domain " + entry.getKey());
                for (final Entry<String, CacheEntry<DfsReferralDataInternal>> entry2 : entry.getValue().entrySet()) {
                    log.trace("  Root " + entry2.getKey());
                    if (entry2.getValue().map != null) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 29.7K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java

                            ImmutableTypeToInstanceMap.builder();
                        for (Object object : elements) {
                          Entry<?, ?> entry = (Entry<?, ?>) object;
                          builder.put((TypeToken) entry.getKey(), entry.getValue());
                        }
                        return (Map) builder.build();
                      }
                    })
                .named("ImmutableTypeToInstanceMap")
                .withFeatures(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 6.9K bytes
    - Click Count (0)
  6. src/test/java/jcifs/util/CryptoTest.java

            // Given
            byte[] key = "testkey1".getBytes(); // 8 bytes for DES
            byte[] plaintext = "12345678".getBytes(); // 8 bytes (DES block size)
    
            // When
            Cipher desCipher = Crypto.getDES(key);
            desCipher.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(key, "DES"));
            byte[] encrypted = desCipher.doFinal(plaintext);
    
            // Then
            assertNotNull(encrypted);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.4K bytes
    - Click Count (0)
  7. compat/maven-artifact/src/main/java/org/apache/maven/artifact/ArtifactUtils.java

            if (from != null) {
                for (Map.Entry<K, ? extends Artifact> entry : from.entrySet()) {
                    to.put(entry.getKey(), ArtifactUtils.copyArtifact(entry.getValue()));
                }
            }
    
            return to;
        }
    
        private static <T> List<T> copyList(List<T> original) {
            List<T> copy = null;
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 6.9K bytes
    - Click Count (0)
  8. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/BuildPlan.java

                                .entrySet()
                                .stream()
                                .filter(p -> p.getValue() > 1)
                                .map(Map.Entry::getKey)
                                .collect(Collectors.toSet());
                    }
                }
            }
            return duplicateIds;
        }
    
        public List<BuildStep> sortedNodes() {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Mar 28 12:11:25 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java

        assertNull("put(null, null) should return null", put(nullKeyValueEntry));
        expectAdded(nullKeyValueEntry);
      }
    
      @CanIgnoreReturnValue
      private V put(Entry<K, V> entry) {
        return getMap().put(entry.getKey(), entry.getValue());
      }
    
      /**
       * Returns the {@link Method} instance for {@link #testPut_nullKeyUnsupported()} so that tests of
       * {@link java.util.TreeMap} can suppress it with {@code
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 9.1K bytes
    - Click Count (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/project/interpolation/StringSearchModelInterpolator.java

                                                                    logger.debug("Skipping interpolation of field: " + field
                                                                            + " (key: " + entry.getKey() + ") in: "
                                                                            + cls.getName()
                                                                            + "; it is an unmodifiable collection.");
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 14.1K bytes
    - Click Count (0)
Back to Top