Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 43 for singletonMap (0.07 sec)

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

    import static com.google.common.collect.testing.features.MapFeature.SUPPORTS_REMOVE;
    import static java.util.Collections.singletonList;
    import static java.util.Collections.singletonMap;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.Lists;
    import com.google.common.collect.testing.features.CollectionSize;
    import com.google.common.collect.testing.features.MapFeature;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  2. api/maven-api-xml/src/main/java/org/apache/maven/api/xml/ImmutableCollections.java

                        return singletonMap(entry.getKey(), entry.getValue());
                    default:
                        return new MapN<>(map);
                }
            }
        }
    
        @SuppressWarnings("unchecked")
        static <K, V> Map<K, V> emptyMap() {
            return (Map<K, V>) EMPTY_MAP;
        }
    
        static <K, V> Map<K, V> singletonMap(K key, V value) {
            return new Map1<>(key, value);
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Jul 07 11:47:42 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.java

    import static com.google.common.collect.testing.features.MapFeature.SUPPORTS_REMOVE;
    import static java.util.Collections.singleton;
    import static java.util.Collections.singletonMap;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.SetMultimap;
    import com.google.common.collect.testing.features.CollectionSize;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java

                  @Override
                  protected Map<String, String> create(Entry<String, String>[] entries) {
                    return singletonMap(entries[0].getKey(), entries[0].getValue());
                  }
                })
            .named("singletonMap")
            .withFeatures(
                MapFeature.ALLOWS_NULL_KEYS,
                MapFeature.ALLOWS_NULL_VALUES,
                MapFeature.ALLOWS_ANY_NULL_QUERIES,
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Dec 16 03:23:31 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.java

    import static com.google.common.collect.testing.features.MapFeature.SUPPORTS_REMOVE;
    import static java.util.Collections.singleton;
    import static java.util.Collections.singletonMap;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.SetMultimap;
    import com.google.common.collect.testing.features.CollectionSize;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java

            // Full NTLM handshake testing would require more complex mocking
    
            // Arrange - Mock a server that supports NTLM
            mockResponse(HTTP_UNAUTHORIZED, "Unauthorized", Collections.singletonMap("WWW-Authenticate", Collections.singletonList("NTLM")),
                    new ByteArrayInputStream(new byte[0]));
    
            // Act - Trigger handshake
            int responseCode = ntlmConnection.getResponseCode();
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  7. impl/maven-core/src/test/java/org/apache/maven/lifecycle/internal/concurrent/BuildPlanCreatorTest.java

        @Test
        void testMulti() {
            MavenProject project = new MavenProject();
            project.setCollectedProjects(List.of());
            Map<MavenProject, List<MavenProject>> projects = Collections.singletonMap(project, Collections.emptyList());
    
            BuildPlan plan = calculateLifecycleMappings(projects, "package");
    
            new BuildPlanLogger().writePlan(System.out::println, plan);
        }
    
        @Test
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Mar 28 15:21:19 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  8. build-logic/documentation/src/main/groovy/gradlebuild/docs/DecorateReleaseNotes.java

                parameters.put("jqueryFiles", getJquery().getFiles());
    
                copySpec.filter(parameters, ReleaseNotesTransformer.class);
                copySpec.filter(Collections.singletonMap("tokens", getReplacementTokens().get()), ReplaceTokens.class);
            });
        }
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Sep 28 06:35:15 UTC 2021
    - 4.1K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/RepositoryUtils.java

            if (org.apache.maven.artifact.Artifact.SCOPE_SYSTEM.equals(artifact.getScope())) {
                String localPath = (artifact.getFile() != null) ? artifact.getFile().getPath() : "";
                props = Collections.singletonMap(MavenArtifactProperties.LOCAL_PATH, localPath);
            }
    
            Artifact result = new DefaultArtifact(
                    artifact.getGroupId(),
                    artifact.getArtifactId(),
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Sep 04 18:33:16 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoDescriptorCreator.java

                    .map(p -> XmlNode.newInstance(
                            p.getName(),
                            p.getExpression(),
                            p.getDefaultValue() != null
                                    ? Collections.singletonMap("default-value", p.getDefaultValue())
                                    : null,
                            null,
                            null))
                    .collect(Collectors.toList());
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Mar 25 09:45:07 UTC 2025
    - 11.3K bytes
    - Viewed (0)
Back to top