Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 271 - 280 of 361 for keySet (0.05 seconds)

  1. guava-tests/benchmark/com/google/common/collect/MapBenchmark.java

      }
    
      @Benchmark
      boolean iterateWithKeySetAndGet(int reps) {
        Map<Element, Element> map = mapToTest;
    
        boolean dummy = false;
        for (int i = 0; i < reps; i++) {
          for (Element key : map.keySet()) {
            Element value = map.get(key);
            dummy ^= key != value;
          }
        }
        return dummy;
      }
    
      @Benchmark
      boolean iterateValuesAndGet(int reps) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/ArrayListMultimap.java

        this.expectedValuesPerKey = expectedValuesPerKey;
      }
    
      private ArrayListMultimap(Multimap<? extends K, ? extends V> multimap) {
        this(
            multimap.keySet().size(),
            (multimap instanceof ArrayListMultimap)
                ? ((ArrayListMultimap<?, ?>) multimap).expectedValuesPerKey
                : DEFAULT_VALUES_PER_KEY);
        putAll(multimap);
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 05 23:15:58 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  3. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/MultiThreadedBuilder.java

            // gather artifactIds which are not unique so that the respective thread names can be extended with the groupId
            Set<String> duplicateArtifactIds = projectBuildList.keySet().stream()
                    .map(MavenProject::getArtifactId)
                    .collect(Collectors.groupingBy(Function.identity(), Collectors.counting()))
                    .entrySet()
                    .stream()
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jul 16 03:42:09 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  4. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/ValidateJsonNoKeywordsTask.java

                getReport().toURI().toASCIIString(),
                System.lineSeparator(),
                String.format("Verification failed: %d files contained %d violations", errors.keySet().size(), errors.values().size())
            );
            throw new GradleException(message);
        }
    
        /**
         * Loads the known keywords. Although the JSON on disk maps from language to keywords, this method
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 7.6K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/math/BigDecimalMathTest.java

        }
    
        @CanIgnoreReturnValue
        RoundToDoubleTester roundUnnecessaryShouldThrow() {
          unnecessaryShouldThrow = true;
          return this;
        }
    
        void test() {
          assertThat(expectedValues.keySet())
              .containsAtLeastElementsIn(EnumSet.complementOf(EnumSet.of(UNNECESSARY)));
          for (Map.Entry<RoundingMode, Double> entry : expectedValues.entrySet()) {
            RoundingMode mode = entry.getKey();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 11K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/app/web/admin/systeminfo/AdminSysteminfoAction.java

                    value = e.getValue().toString();
                }
                itemList.add(createItem(k, value));
            });
            if (fessConfig instanceof final ObjectiveConfig config) {
                config.keySet().stream().forEach(k -> {
                    final String value;
                    if (isMaskedValue(k)) {
                        value = MASKED_VALUE;
                    } else {
                        value = config.get(k);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 9.7K bytes
    - Click Count (0)
  7. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecyclePluginAnalyzer.java

                        if (goals != null) {
                            parseLifecyclePhaseDefinitions(plugins, phase, goals);
                        }
                    }
                }
            }
    
            return plugins.keySet();
        }
    
        /**
         * Performs a lookup using Plexus API to make sure we can look up only "visible" (see Maven classloading) components
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 9K bytes
    - Click Count (0)
  8. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java

            } catch (InterruptedException e) {
                scheduler.shutdownNow();
                Thread.currentThread().interrupt();
            }
    
            // Stop all change watchers
            for (String path : directoryCache.keySet()) {
                changeNotifier.stopWatching(path);
            }
    
            // Clear caches
            directoryCache.clear();
            leaseToPath.clear();
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 01:47:47 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategy.java

            } catch (Exception e) {
                context.failure("Failed to create temp project structure: " + e.getMessage());
                // Mark all POMs as errors
                errorPoms.addAll(pomMap.keySet());
            }
    
            return new UpgradeResult(processedPoms, modifiedPoms, errorPoms);
        }
    
        /**
         * Upgrades plugins in the document.
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 37K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/collect/CompactLinkedHashMapTest.java

      }
    
      private void testHasMapEntriesInOrder(Map<?, ?> map, Object... alternatingKeysAndValues) {
        List<? extends Entry<?, ?>> entries = new ArrayList<>(map.entrySet());
        List<Object> keys = new ArrayList<>(map.keySet());
        List<Object> values = new ArrayList<>(map.values());
        assertThat(alternatingKeysAndValues).hasLength(2 * entries.size());
        assertThat(alternatingKeysAndValues).hasLength(2 * keys.size());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Oct 28 18:44:53 GMT 2025
    - 7.8K bytes
    - Click Count (0)
Back to Top