Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for singletonMap (0.06 sec)

  1. 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;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 01 22:23:20 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  2. 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" })));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  3. 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
     */
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 15:01:35 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/AbstractMapEntryTest.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    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;
    
    /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  5. 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 Sep 07 03:35:12 UTC 2025
    - Last Modified: Mon Jul 07 11:47:42 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  6. 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));
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/container/StandardCrawlerContainer.java

     */
    public class StandardCrawlerContainer implements CrawlerContainer {
    
        private static final Logger logger = LogManager.getLogger(StandardCrawlerContainer.class);
    
        private final Map<String, ComponentHolder<?>> singletonMap = new ConcurrentHashMap<>();
    
        private final Map<String, ComponentDef<?>> prototypeMap = new ConcurrentHashMap<>();
    
        private boolean available = true;
    
        /**
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  8. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  9. 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;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  10. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 4.3K bytes
    - Viewed (0)
Back to top