Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 351 - 360 of 565 for getValue5 (0.38 seconds)

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

        @Override
        protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) {
          Map<AnEnum, String> map = new HashMap<>();
          for (Entry<AnEnum, String> entry : entries) {
            map.put(entry.getKey(), entry.getValue());
          }
          return immutableEnumMap(map);
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // suite
      @AndroidIncompatible // test-suite builders
      public static Test suite() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/ImmutableEnumMap.java

        switch (map.size()) {
          case 0:
            return ImmutableMap.of();
          case 1:
            Entry<K, V> entry = getOnlyElement(map.entrySet());
            return ImmutableMap.of(entry.getKey(), entry.getValue());
          default:
            return new ImmutableEnumMap<>(map);
        }
      }
    
      private final transient EnumMap<K, V> delegate;
    
      private ImmutableEnumMap(EnumMap<K, V> delegate) {
        this.delegate = delegate;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/collect/HashMultimapTest.java

                        SetMultimap<String, String> multimap = HashMultimap.create();
                        for (Entry<String, String> entry : entries) {
                          multimap.put(entry.getKey(), entry.getValue());
                        }
                        return multimap;
                      }
                    })
                .named("HashMultimap")
                .withFeatures(
                    MapFeature.ALLOWS_NULL_KEYS,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  4. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/testfixtures/TestFixtureExtension.java

                .flatMap(ext -> ext.serviceToProjectUseMap.entrySet().stream())
                .filter(entry -> entry.getKey().equals(serviceName))
                .map(Map.Entry::getValue)
                .findAny();
        }
    
        private void addFixtureProject(String path) {
            Project fixtureProject = this.project.findProject(path);
            if (fixtureProject == null) {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 4.4K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb/SIDTest.java

                verify(mockResolver, times(1)).resolveSids(same(mockCtx), eq("server.example"), captor.capture());
                assertSame(sid, captor.getValue()[0]);
            }
    
            @Test
            @DisplayName("Weak resolve via initContext triggers only once on accessors")
            void testResolveWeakInitContext() throws SmbException, CIFSException {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/MapPutIfAbsentTester.java

        Entry<K, V> nullValueEntry = entry(k3(), null);
        assertNull(
            "putIfAbsent(key, null) should return null",
            getMap().putIfAbsent(nullValueEntry.getKey(), nullValueEntry.getValue()));
        expectAdded(nullValueEntry);
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_VALUES})
      @CollectionSize.Require(absent = ZERO)
      public void testPutIfAbsent_replacesNullValue() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 16 02:04:51 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java

          ImmutableSortedMap.Builder<String, String> builder = ImmutableSortedMap.naturalOrder();
          for (Entry<String, String> entry : entries) {
            checkNotNull(entry);
            builder.put(entry.getKey(), entry.getValue());
          }
          return builder.build();
        }
      }
    
      public static class ImmutableSortedMapCopyOfEntriesGenerator
          extends TestStringSortedMapGenerator {
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Aug 10 19:54:19 GMT 2025
    - 4.8K bytes
    - Click Count (0)
  8. impl/maven-core/src/main/java/org/apache/maven/configuration/internal/EnhancedConfigurationConverter.java

                final PlexusConfiguration configuration, final ExpressionEvaluator evaluator, final Class<?> type)
                throws ComponentConfigurationException {
            String value = configuration.getValue();
            try {
                Object result = null;
                if (null != value && !value.isEmpty()) {
                    if (evaluator instanceof TypeAwareExpressionEvaluator typeAwareExpressionEvaluator) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Jul 17 07:40:49 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

            }
    
            @Override
            public void remove() {
              checkState(entry != null, "no calls to next() since the last call to remove()");
              Collection<V> collection = entry.getValue();
              entryIterator.remove();
              totalSize -= collection.size();
              collection.clear();
              entry = null;
            }
          };
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Aug 12 15:51:57 GMT 2025
    - 46.9K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/ImmutableListMultimap.java

        int size = 0;
    
        for (Entry<? extends K, ? extends Collection<? extends V>> entry : mapEntries) {
          K key = entry.getKey();
          Collection<? extends V> values = entry.getValue();
          ImmutableList<V> list =
              (valueComparator == null)
                  ? ImmutableList.copyOf(values)
                  : ImmutableList.sortedCopyOf(valueComparator, values);
          if (!list.isEmpty()) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Dec 09 15:58:48 GMT 2025
    - 19.3K bytes
    - Click Count (0)
Back to Top