- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 49 for singletonMap (0.07 seconds)
-
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/SingletonImmutableBiMap.java
SingletonImmutableBiMap(K key, V value) { super(singletonMap(checkNotNull(key), checkNotNull(value))); this.singleKey = key; this.singleValue = value; } private SingletonImmutableBiMap(K key, V value, SingletonImmutableBiMap<V, K> inverse) { super(singletonMap(checkNotNull(key), checkNotNull(value))); this.singleKey = key; this.singleValue = value;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jul 01 22:23:20 GMT 2025 - 1.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableClassToInstanceMapTest.java
} public void testCopyOf_map_nulls() { Map<Class<? extends Number>, Number> nullKey = singletonMap(null, (Number) 1.0); assertThrows(NullPointerException.class, () -> ImmutableClassToInstanceMap.copyOf(nullKey)); Map<? extends Class<? extends Number>, Number> nullValue = singletonMap(Number.class, null); assertThrows(NullPointerException.class, () -> ImmutableClassToInstanceMap.copyOf(nullValue)); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 31 20:00:15 GMT 2026 - 5.8K bytes - Click Count (0) -
api/maven-api-xml/src/main/java/org/apache/maven/api/xml/ImmutableCollections.java
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Mon Jul 07 11:47:42 GMT 2025 - 7.8K bytes - Click Count (0) -
src/test/java/org/codelibs/opensearch/extension/kuromoji/index/analysis/JapaneseStopTokenFilterFactory.java
* governing permissions and limitations under the License. */ package org.codelibs.opensearch.extension.kuromoji.index.analysis; import static java.util.Collections.singletonMap; import java.util.Map; import java.util.Set; import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.StopFilter; import org.apache.lucene.analysis.TokenStream;
Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sat Mar 15 06:51:20 GMT 2025 - 2.4K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Challenge.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3 import java.nio.charset.Charset import java.util.Collections.singletonMap import java.util.Locale.US import kotlin.text.Charsets.ISO_8859_1 import okhttp3.internal.unmodifiable /** * An [RFC 7235][rfc_7235] challenge. * * [rfc_7235]: https://tools.ietf.org/html/rfc7235 */
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue May 27 15:01:35 GMT 2025 - 3.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/AbstractMapEntryTest.java
* limitations under the License. */ package com.google.common.collect; import static com.google.common.truth.Truth.assertThat; import static java.util.Collections.singletonMap; import com.google.common.annotations.GwtCompatible; import java.util.Map.Entry; import junit.framework.TestCase; import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 3.2K bytes - Click Count (0) -
android/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;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 4.3K bytes - Click Count (0) -
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;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 4.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java
NullPointerException.class, () -> builder.putAll(Collections.<String, Integer>singletonMap(null, 1))); } public void testBuilderPutNullValueViaPutAll() { Builder<String, Integer> builder = new Builder<>(); assertThrows( NullPointerException.class, () -> builder.putAll(Collections.<String, Integer>singletonMap("one", null))); } @SuppressWarnings("AlwaysThrows")Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 21.4K bytes - Click Count (0) -
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;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 4.3K bytes - Click Count (0)