- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 49 for singletonMap (0.09 seconds)
-
guava-testlib/src/com/google/common/collect/testing/Helpers.java
package com.google.common.collect.testing; import static com.google.common.base.Preconditions.checkNotNull; import static java.lang.Math.max; import static java.util.Arrays.asList; import static java.util.Collections.singletonMap; import static java.util.Collections.sort; import static junit.framework.Assert.assertEquals; import static junit.framework.Assert.assertFalse; import static junit.framework.Assert.assertTrue;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 17.2K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java
import static com.google.common.base.Preconditions.checkArgument; import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.collect.Maps.newTreeMap; import static java.util.Collections.singletonMap; import static java.util.Collections.unmodifiableSortedMap; import com.google.errorprone.annotations.CanIgnoreReturnValue; import java.util.Comparator; import java.util.Iterator; import java.util.Map;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 08 18:10:02 GMT 2026 - 16.6K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
import static java.util.Arrays.asList; import static java.util.Collections.emptyMap; import static java.util.Collections.emptySet; import static java.util.Collections.singleton; import static java.util.Collections.singletonMap; import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.J2ktIncompatible; import java.util.Collection; import java.util.HashSet; import java.util.Iterator; import java.util.Map;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 43.9K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableMap.java
/** * GWT emulation of {@link com.google.common.collect.ImmutableMap}. For non sorted maps, it is a * thin wrapper around {@link java.util.Collections#emptyMap()}, {@link * Collections#singletonMap(Object, Object)} and {@link java.util.LinkedHashMap} for empty, * singleton and regular maps respectively. For sorted maps, it's a thin wrapper around {@link * java.util.TreeMap}. * * @see ImmutableSortedMapCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 15:51:42 GMT 2026 - 17.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/QueryStringBuilderTest.java
final String k = "q"; assertEquals("", getAsQuery(Collections.singletonMap(k, new String[] { "" }))); assertEquals("aaa", getAsQuery(Collections.singletonMap(k, new String[] { "aaa" }))); assertEquals("aaa bbb", getAsQuery(Collections.singletonMap(k, new String[] { "aaa bbb" }))); assertEquals("aaa bbb ccc", getAsQuery(Collections.singletonMap(k, new String[] { "aaa bbb", "ccc" })));Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 16.7K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/base/ToStringHelperBenchmark.java
.addValue(Arrays.asList("C")) .addValue(Arrays.asList()) .add(SHORT_NAME, Collections.singletonMap("k1", "v1")) .add(LONG_NAME, Collections.singletonMap("k2", "v2")) .addValue(Collections.singletonMap("k3", "v3")) .addValue(Collections.emptyMap()) .addValue(null) .add(SHORT_NAME, java.util.Optional.of("1"))
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 4.4K bytes - Click Count (0) -
compat/maven-settings-builder/src/main/java/org/apache/maven/settings/building/DefaultSettingsBuilder.java
Settings settings; try { Map<String, ?> options = Collections.singletonMap(SettingsReader.IS_STRICT, Boolean.TRUE); try { settings = settingsReader.read(settingsSource.getInputStream(), options); } catch (SettingsParseException e) { options = Collections.singletonMap(SettingsReader.IS_STRICT, Boolean.FALSE);Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jul 23 17:27:08 GMT 2025 - 9.5K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/base/ToStringHelperBenchmark.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 4.4K bytes - Click Count (0) -
compat/maven-compat/src/test/java/org/apache/maven/toolchain/DefaultToolchainTest.java
ToolchainModel model = new ToolchainModel(); model.setType("TYPE"); DefaultToolchain toolchain = newDefaultToolchain(model); assertFalse(toolchain.matchesRequirements(Collections.singletonMap("name", "John Doe"))); verify(logger).debug("Toolchain {} is missing required property: {}", toolchain, "name"); } @Test void testNonMatchingRequirementProperty() {
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Feb 11 12:33:57 GMT 2025 - 4.9K bytes - Click Count (0) -
compat/maven-toolchain-builder/src/main/java/org/apache/maven/toolchain/building/DefaultToolchainsBuilder.java
try { Map<String, ?> options = Collections.singletonMap(ToolchainsReader.IS_STRICT, Boolean.TRUE); try { toolchains = toolchainsReader.read(toolchainsSource.getInputStream(), options); } catch (ToolchainsParseException e) { options = Collections.singletonMap(ToolchainsReader.IS_STRICT, Boolean.FALSE);Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Mar 05 09:37:42 GMT 2025 - 7.3K bytes - Click Count (0)