Search Options

Results per page
Sort
Preferred Languages
Advance

Results 291 - 300 of 361 for entrySet (0.07 sec)

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

        List<K> keys = copyToList(multimap().keySet());
        for (K key : keys) {
          resetContainer();
    
          int size = getNumElements();
    
          Iterator<Entry<K, Collection<V>>> asMapItr = multimap().asMap().entrySet().iterator();
          Collection<V> collection = null;
          while (asMapItr.hasNext()) {
            Entry<K, Collection<V>> asMapEntry = asMapItr.next();
            if (key.equals(asMapEntry.getKey())) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/forked/DefaultForkedMavenInvoker.java

            MavenOptions mavenOptions = invokerRequest.options();
            if (mavenOptions.userProperties().isPresent()) {
                for (Map.Entry<String, String> entry :
                        mavenOptions.userProperties().get().entrySet()) {
                    cmdAndArguments.add("-D" + entry.getKey() + "=" + entry.getValue());
                }
            }
            if (mavenOptions.showVersionAndExit().orElse(false)) {
                cmdAndArguments.add("--version");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb1/SmbClient.java

                    final Map<String, List<String>> headerFieldMap = file.getHeaderFields();
                    if (headerFieldMap != null) {
                        for (final Map.Entry<String, List<String>> entry : headerFieldMap.entrySet()) {
                            responseData.addMetaData(entry.getKey(), entry.getValue());
                        }
                    }
    
                    if (file.canRead()) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/EnumHashBiMapTest.java

                Currency.FRANC, "franc");
        EnumHashBiMap<Currency, String> bimap = EnumHashBiMap.create(map);
    
        Set<Object> uniqueEntries = Sets.newIdentityHashSet();
        uniqueEntries.addAll(bimap.entrySet());
        assertEquals(3, uniqueEntries.size());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // serialize
      public void testSerializable() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/AbstractFilteredMapTest.java

        filtered.put("a", 2);
        filtered.put("b", 4);
        assertEquals(ImmutableMap.of("a", 2, "b", 4), filtered);
    
        Entry<String, Integer> entry = filtered.entrySet().iterator().next();
        assertThrows(IllegalArgumentException.class, () -> entry.setValue(5));
    
        assertEquals(ImmutableMap.of("a", 2, "b", 4), filtered);
      }
    
      public void testFilteredValuesClear() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  6. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionRangeResolver.java

                    List<Version> versions = new ArrayList<>();
                    for (Map.Entry<String, ArtifactRepository> v : versionIndex.entrySet()) {
                        try {
                            Version ver = versionScheme.parseVersion(v.getKey());
                            if (versionConstraint.containsVersion(ver)) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/JoinerTest.java

        Map<@Nullable String, @Nullable String> mapWithNulls = Maps.newLinkedHashMap();
        mapWithNulls.put("a", null);
        mapWithNulls.put(null, "b");
        Set<Entry<String, String>> entriesWithNulls = mapWithNulls.entrySet();
    
        assertThrows(NullPointerException.class, () -> j.join(entriesWithNulls));
    
        assertThrows(NullPointerException.class, () -> j.join(entriesWithNulls.iterator()));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/AbstractMultimap.java

          return entryIterator();
        }
    
        @Override
        public Spliterator<Entry<K, V>> spliterator() {
          return entrySpliterator();
        }
      }
    
      @WeakOuter
      class EntrySet extends Entries implements Set<Entry<K, V>> {
        @Override
        public int hashCode() {
          return Sets.hashCodeImpl(this);
        }
    
        @Override
        public boolean equals(@CheckForNull Object obj) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 21:08:00 UTC 2021
    - 7.1K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java

      public void testPutAbsentConcurrentWithEntrySetIteration() {
        assertThrows(
            ConcurrentModificationException.class,
            () -> {
              Iterator<Entry<K, V>> iterator = getMap().entrySet().iterator();
              put(e3());
              iterator.next();
            });
      }
    
      @MapFeature.Require({FAILS_FAST_ON_CONCURRENT_MODIFICATION, SUPPORTS_PUT})
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java

      }
    
      public void testOrderedAsMapEntries() {
        TreeMultimap<@Nullable String, @Nullable Integer> multimap = createPopulate();
        Iterator<Entry<String, Collection<Integer>>> iterator = multimap.asMap().entrySet().iterator();
        Entry<String, Collection<Integer>> entry = iterator.next();
        assertEquals(null, entry.getKey());
        assertThat(entry.getValue()).containsExactly(7, 3, 1);
        entry = iterator.next();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top