Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for singletonMap (0.04 sec)

  1. 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)
  2. 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)
  3. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  4. 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")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  5. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 16:28:01 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java

            () -> builder.putAll(Collections.<String, Integer>singletonMap(null, 1)));
      }
    
      public void testBuilderPutNullValueViaPutAll() {
        Builder<String, Integer> builder = ImmutableSortedMap.naturalOrder();
        assertThrows(
            NullPointerException.class,
            () -> builder.putAll(Collections.<String, Integer>singletonMap("one", null)));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.6K bytes
    - Viewed (0)
  7. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 16:28:01 UTC 2025
    - 21.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/CollectCollectors.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static java.util.Collections.singletonMap;
    import static java.util.stream.Collectors.collectingAndThen;
    import static java.util.stream.Collectors.toMap;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 16.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/CollectCollectors.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static java.util.Collections.singletonMap;
    import static java.util.stream.Collectors.collectingAndThen;
    import static java.util.stream.Collectors.toMap;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

     * limitations under the License.
     */
    
    package com.google.common.collect.testing;
    
    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;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 17.2K bytes
    - Viewed (0)
Back to top