Search Options

Results per page
Sort
Preferred Languages
Advance

Results 291 - 300 of 423 for getKey (0.14 sec)

  1. android/guava-tests/test/com/google/common/collect/ArrayListMultimapTest.java

                        ListMultimap<String, String> multimap = ArrayListMultimap.create();
                        for (Entry<String, String> entry : entries) {
                          multimap.put(entry.getKey(), entry.getValue());
                        }
                        return multimap;
                      }
                    })
                .named("ArrayListMultimap")
                .withFeatures(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  2. 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);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/main/java/org/apache/maven/model/normalization/DefaultModelNormalizer.java

                List<Plugin> plugins = build.getPlugins();
                Map<Object, Plugin> normalized = new LinkedHashMap<>(plugins.size() * 2);
    
                for (Plugin plugin : plugins) {
                    Object key = plugin.getKey();
                    Plugin first = normalized.get(key);
                    if (first != null) {
                        plugin = merger.mergePlugin(plugin, first);
                    }
                    normalized.put(key, plugin);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/EmlExtractor.java

            final Properties props = new Properties(mailProperties);
            if (params != null) {
                for (final Map.Entry<String, String> entry : params.entrySet()) {
                    props.put(entry.getKey(), entry.getValue());
                }
            }
            try {
                final Session mailSession = Session.getDefaultInstance(props, null);
                final MimeMessage message = new MimeMessage(mailSession, in);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  5. android/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);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableMultimapTest.java

        final StringHolder holder = new StringHolder();
        holder.string = "one";
        Entry<String, Integer> entry =
            new AbstractMapEntry<String, Integer>() {
              @Override
              public String getKey() {
                return holder.string;
              }
    
              @Override
              public Integer getValue() {
                return 1;
              }
            };
    
        builder.put(entry);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java

        // If it's an Entry, it may become invalid once it's removed from the Map. Copy it.
        if (element instanceof Entry) {
          Entry<?, ?> entry = (Entry<?, ?>) element;
          element = mapEntry(entry.getKey(), entry.getValue());
        }
        assertTrue(collection.contains(element)); // sanity check
        iterator.remove();
        assertFalse(collection.contains(element));
        assertEquals(originalSize - 1, collection.size());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/SearchLogHelper.java

                    for (final Map.Entry<String, List<String>> logEntry : fieldLogMap.entrySet()) {
                        for (final String value : logEntry.getValue()) {
                            searchLog.addSearchFieldLogValue(logEntry.getKey(), StringUtils.abbreviate(value, queryMaxLength));
                        }
                    }
                }
    
                for (final String s : fessConfig.getSearchlogRequestHeadersAsArray()) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jul 22 02:07:37 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Interners.java

            @SuppressWarnings("rawtypes") // using raw types to avoid a bug in our nullness checker :(
            InternalEntry entry = map.getEntry(sample);
            if (entry != null) {
              Object canonical = entry.getKey();
              if (canonical != null) { // only matters if weak/soft keys are used
                // The compiler would know this is safe if not for our use of raw types (see above).
                @SuppressWarnings("unchecked")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 13 14:30:51 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java

      }
    
      private void putAll(Iterable<Entry<K, V>> entries) {
        Map<K, V> map = new LinkedHashMap<>();
        for (Entry<K, V> entry : entries) {
          map.put(entry.getKey(), entry.getValue());
        }
        getMap().putAll(map);
      }
    
      /**
       * Returns the {@link Method} instance for {@link #testPutAll_nullKeyUnsupported()} so that tests
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top