Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 644 for kmap (0.16 sec)

  1. src/test/java/org/codelibs/core/collection/ArrayMapTest.java

            assertThat(map.containsKey("3"), is(not(true)));
            map.put("3", null);
            assertThat(map.containsKey("3"), is(true));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testIndexOf() throws Exception {
            assertThat(map.indexOf("test"), is(1));
            assertThat(map.indexOf(null), is(0));
            assertThat(map.indexOf("test3"), is(-1));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/collection/CaseInsensitiveMapTest.java

            map.putAll(m);
            assertThat(map.get("THREE"), is("3"));
            assertThat(map.get("FOUR"), is("4"));
            assertThat(map.size(), is(4));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testPerformance() throws Exception {
            for (int j = 0; j < 3; ++j) {
                final int num = 100000;
                final Map<String, String> hmap = new HashMap<String, String>();
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 4K bytes
    - Viewed (0)
  3. src/cmd/api/main_test.go

    	current     *apiPackage
    	deprecated  map[token.Pos]bool
    	features    map[string]bool              // set
    	imported    map[string]*apiPackage       // packages already imported
    	stdPackages []string                     // names, omitting "unsafe", internal, and vendored packages
    	importMap   map[string]map[string]string // importer dir -> import path -> canonical path
    	importDir   map[string]string            // canonical import path -> dir
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

        }
        if (map instanceof ImmutableSortedMap) {
          // TODO(kevinb): Prove that this cast is safe, even though
          // Collections.unmodifiableSortedMap requires the same key type.
          @SuppressWarnings("unchecked")
          ImmutableSortedMap<K, V> kvMap = (ImmutableSortedMap<K, V>) map;
          if (!kvMap.isPartialView()) {
            return kvMap;
          }
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableMap.java

       */
      public static <K, V> ImmutableMap<K, V> copyOf(Map<? extends K, ? extends V> map) {
        if ((map instanceof ImmutableMap) && !(map instanceof SortedMap)) {
          @SuppressWarnings("unchecked") // safe since map is not writable
          ImmutableMap<K, V> kvMap = (ImmutableMap<K, V>) map;
          if (!kvMap.isPartialView()) {
            return kvMap;
          }
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  6. cmd/site-replication.go

    	}
    
    	info.StatsSummary = make(map[string]madmin.SRSiteSummary, len(c.state.Peers))
    	info.BucketStats = make(map[string]map[string]srBucketStatsSummary)
    	info.PolicyStats = make(map[string]map[string]srPolicyStatsSummary)
    	info.UserStats = make(map[string]map[string]srUserStatsSummary)
    	info.GroupStats = make(map[string]map[string]srGroupStatsSummary)
    	info.ILMExpiryRulesStats = make(map[string]map[string]srILMExpiryRuleStatsSummary)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  7. cmd/bucket-replication.go

    		}
    	}
    
    	lkMap := caseInsensitiveMap(objInfo.UserDefined)
    	if lang, ok := lkMap.Lookup(xhttp.ContentLanguage); ok {
    		putOpts.ContentLanguage = lang
    	}
    	if disp, ok := lkMap.Lookup(xhttp.ContentDisposition); ok {
    		putOpts.ContentDisposition = disp
    	}
    	if cc, ok := lkMap.Lookup(xhttp.CacheControl); ok {
    		putOpts.CacheControl = cc
    	}
    	if mode, ok := lkMap.Lookup(xhttp.AmzObjectLockMode); ok {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  8. guava-tests/test/com/google/common/collect/AbstractMapsTransformValuesTest.java

      }
    
      public void testTransformSingletonMapEquality() {
        Map<String, String> map =
            Maps.transformValues(ImmutableMap.of("a", 1), Functions.toStringFunction());
        Map<String, String> expected = ImmutableMap.of("a", "1");
        assertMapsEqual(expected, map);
        assertEquals(expected.get("a"), map.get("a"));
      }
    
      public void testTransformIdentityFunctionEquality() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/AbstractMapsTransformValuesTest.java

      }
    
      public void testTransformSingletonMapEquality() {
        Map<String, String> map =
            Maps.transformValues(ImmutableMap.of("a", 1), Functions.toStringFunction());
        Map<String, String> expected = ImmutableMap.of("a", "1");
        assertMapsEqual(expected, map);
        assertEquals(expected.get("a"), map.get("a"));
      }
    
      public void testTransformIdentityFunctionEquality() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

      fstat(fd, &st);
      if (S_ISDIR(st.st_mode)) {
        TF_SetStatus(status, TF_FAILED_PRECONDITION, "path is a directory");
      } else {
        const void* address =
            mmap(nullptr, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
        if (address == MAP_FAILED) {
          TF_SetStatusFromIOError(status, errno, path);
        } else {
          region->plugin_memory_region =
              new tf_read_only_memory_region::PosixMemoryRegion{
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Mar 24 20:08:23 GMT 2024
    - 15.8K bytes
    - Viewed (0)
Back to top