Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for singletonMap (0.07 sec)

  1. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17K bytes
    - Viewed (0)
  2. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  3. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  4. 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(),
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableMapTest.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)));
      }
    
      public void testPuttingTheSameKeyTwiceThrowsOnBuild() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  6. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.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)));
      }
    
      public void testPuttingTheSameKeyTwiceThrowsOnBuild() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 36.6K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/suggest/SuggesterTest.java

            suggester.indexer().addElevateWord(elevateWord, true);
            suggester.refresh();
    
            Thread.sleep(1000);
            ZonedDateTime threshold = ZonedDateTime.now();
            Thread.sleep(1000);
    
            suggester.indexer().indexFromDocument(new Map[] { Collections.singletonMap(field, (Object) "検索エンジン") });
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 37K bytes
    - Viewed (0)
  9. build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleUserManualPlugin.java

    import java.util.HashMap;
    import java.util.List;
    import java.util.Map;
    
    import static java.util.Arrays.asList;
    import static java.util.Collections.singletonList;
    import static java.util.Collections.singletonMap;
    
    public class GradleUserManualPlugin implements Plugin<Project> {
    
        public static final String DOCS_GRADLE_ORG = "https://docs.gradle.org/";
    
        @Override
        public void apply(Project project) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Mar 01 05:46:51 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

    package com.google.common.collect.testing;
    
    import static com.google.common.collect.testing.Helpers.entryComparator;
    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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
Back to top