- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 49 for singletonMap (0.07 seconds)
-
src/main/java/org/codelibs/fess/suggest/util/SettingsResourceLoader.java
final String dictionaryPath = System.getProperty(DICTIONARY_PATH_PROPERTY, StringUtil.EMPTY); return loadJsonResource(resourcePath, Collections.singletonMap(DICTIONARY_PATH_PLACEHOLDER, dictionaryPath)); } /** * Loads a JSON resource file with the default dictionary path substitution using a specific class loader. *
Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sun Feb 01 12:48:24 GMT 2026 - 5.7K bytes - Click Count (0) -
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();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.6K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/DecorateReleaseNotes.java
parameters.put("releaseNotesJavascript", getReleaseNotesJavascriptFile().get().getAsFile()); copySpec.filter(parameters, ReleaseNotesTransformer.class); copySpec.filter(Collections.singletonMap("tokens", getReplacementTokens().get()), ReplaceTokens.class); }); }
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Thu Jan 22 12:08:23 GMT 2026 - 3.8K bytes - Click Count (0) -
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(),
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Sep 04 18:33:16 GMT 2025 - 15.8K bytes - Click Count (0) -
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());
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Mar 25 09:45:07 GMT 2025 - 11.3K bytes - Click Count (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/ArtifactDescriptorReaderDelegate.java
boolean system = dependency.getSystemPath() != null && !dependency.getSystemPath().isEmpty(); Map<String, String> props = null; if (system) { props = Collections.singletonMap(MavenArtifactProperties.LOCAL_PATH, dependency.getSystemPath()); } Artifact artifact = new DefaultArtifact( dependency.getGroupId(), dependency.getArtifactId(),
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Mar 19 13:42:58 GMT 2026 - 6.1K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableMap.java
return (ImmutableMap<K, V>) RegularImmutableMap.EMPTY; } /** * Returns an immutable map containing a single entry. This map behaves and performs comparably to * {@link Collections#singletonMap} but will not accept a null key or value. It is preferable * mainly for consistency and maintainability of your code. */ public static <K, V> ImmutableMap<K, V> of(K k1, V v1) { checkEntryNotNull(k1, v1);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 02 19:58:40 GMT 2026 - 41.2K bytes - Click Count (0) -
benchmarks/src/main/java/org/elasticsearch/benchmark/routing/allocation/AllocationBenchmark.java
RoutingTable routingTable = rb.build(); DiscoveryNodes.Builder nb = DiscoveryNodes.builder(); for (int i = 1; i <= numNodes; i++) { nb.add(Allocators.newNode("node" + i, Collections.singletonMap("tag", "tag_" + (i % numTags)))); } initialClusterState = ClusterState.builder(ClusterName.CLUSTER_NAME_SETTING.getDefault(Settings.EMPTY)) .metadata(metadata)
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Apr 13 08:33:41 GMT 2021 - 6.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/SuggesterTest.java
String indexName = "test"; BulkRequestBuilder bulkRequestBuilder = client.prepareBulk(); for (int i = 0; i < num; i++) { Map<String, Object> source = Collections.singletonMap("content", "test"); IndexRequestBuilder indexRequestBuilder = new IndexRequestBuilder(client, IndexAction.INSTANCE);
Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sun Feb 01 12:48:24 GMT 2026 - 37.1K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableMap.java
return (ImmutableMap<K, V>) RegularImmutableMap.EMPTY; } /** * Returns an immutable map containing a single entry. This map behaves and performs comparably to * {@link Collections#singletonMap} but will not accept a null key or value. It is preferable * mainly for consistency and maintainability of your code. */ public static <K, V> ImmutableMap<K, V> of(K k1, V v1) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 44.7K bytes - Click Count (0)