Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,677 for map1 (0.05 sec)

  1. maven-xml-impl/src/main/java/org/apache/maven/internal/xml/ImmutableCollections.java

        }
    
        static <K, V> Map<K, V> copy(Map<K, V> map) {
            if (map == null) {
                return emptyMap();
            } else if (map instanceof AbstractImmutableMap) {
                return map;
            } else {
                switch (map.size()) {
                    case 0:
                        return emptyMap();
                    case 1:
                        Map.Entry<K, V> entry = map.entrySet().iterator().next();
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Jan 22 17:27:48 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  2. src/expvar/expvar_test.go

    	}
    }
    
    func TestHandler(t *testing.T) {
    	RemoveAll()
    	m := NewMap("map1")
    	m.Add("a", 1)
    	m.Add("z", 2)
    	m2 := NewMap("map2")
    	for i := 0; i < 9; i++ {
    		m2.Add(strconv.Itoa(i), int64(i))
    	}
    	rr := httptest.NewRecorder()
    	rr.Body = new(bytes.Buffer)
    	expvarHandler(rr, nil)
    	want := `{
    "map1": {"a": 1, "z": 2},
    "map2": {"0": 0, "1": 1, "2": 2, "3": 3, "4": 4, "5": 5, "6": 6, "7": 7, "8": 8}
    }
    `
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:46:19 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  3. platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/GUtil.java

                }
            };
        }
    
        public static <K, V> Map<K, V> addMaps(Map<K, V> map1, Map<K, V> map2) {
            HashMap<K, V> map = new HashMap<K, V>();
            map.putAll(map1);
            map.putAll(map2);
            return map;
        }
    
        public static void addToMap(Map<String, String> dest, Map<?, ?> src) {
            for (Map.Entry<?, ?> entry : src.entrySet()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  4. src/encoding/gob/type_test.go

    	}
    }
    
    func TestMapType(t *testing.T) {
    	var m map[string]int
    	mapStringInt := getTypeUnlocked("map", reflect.TypeOf(m))
    	var newm map[string]int
    	newMapStringInt := getTypeUnlocked("map1", reflect.TypeOf(newm))
    	if mapStringInt != newMapStringInt {
    		t.Errorf("second registration of map[string]int creates new type")
    	}
    	var b map[string]bool
    	mapStringBool := getTypeUnlocked("", reflect.TypeOf(b))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:26:13 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  5. platforms/core-runtime/logging/src/main/java/org/gradle/util/GUtil.java

                }
            };
        }
    
        public static <K, V> Map<K, V> addMaps(Map<K, V> map1, Map<K, V> map2) {
            HashMap<K, V> map = new HashMap<K, V>();
            map.putAll(map1);
            map.putAll(map2);
            return map;
        }
    
        public static void addToMap(Map<String, String> dest, Map<?, ?> src) {
            for (Map.Entry<?, ?> entry : src.entrySet()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

    // the quantized function using the attr_map attribute. In the quantized
    // function, this map (map1) is in {attr_name_1: attr_identifier} format; and in
    // the float function, this map (map2) is in {attr_identifier: attr_name_2}
    // format. Where, the attribute identifiers should match between two maps,
    // attr_name_1 is the name of the of the attribute needs to be set in the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  7. pkg/maps/maps.go

    // limitations under the License.
    
    package maps
    
    import "maps" // nolint: depguard
    
    // Equal reports whether two maps contain the same key/value pairs.
    // Values are compared using ==.
    func Equal[M1, M2 ~map[K]V, K, V comparable](m1 M1, m2 M2) bool {
    	return maps.Equal(m1, m2)
    }
    
    // Clone returns a copy of the map.
    // The elements are copied using assignment, so this is a shallow clone.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 01 22:48:35 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  8. src/maps/maps.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package maps defines various functions useful with maps of any type.
    package maps
    
    import (
    	_ "unsafe"
    )
    
    // Equal reports whether two maps contain the same key/value pairs.
    // Values are compared using ==.
    func Equal[M1, M2 ~map[K]V, K, V comparable](m1 M1, m2 M2) bool {
    	if len(m1) != len(m2) {
    		return false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 28 20:35:05 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/collection/Maps.java

         */
        protected Maps(final Map<K, V> map) {
            this.map = map;
        }
    
        /**
         * {@link Map}にキーと値を追加します。
         *
         * @param key
         *            <code>Map</code>に追加されるキー
         * @param value
         *            <code>Map</code>に追加される値
         * @return このインスタンス自身
         */
        public Maps<K, V> $(final K key, final V value) {
            map.put(key, value);
            return this;
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Maps.java

          implements MapDifference<K, V> {
        final Map<K, V> onlyOnLeft;
        final Map<K, V> onlyOnRight;
        final Map<K, V> onBoth;
        final Map<K, ValueDifference<V>> differences;
    
        MapDifferenceImpl(
            Map<K, V> onlyOnLeft,
            Map<K, V> onlyOnRight,
            Map<K, V> onBoth,
            Map<K, ValueDifference<V>> differences) {
          this.onlyOnLeft = unmodifiableMap(onlyOnLeft);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 24 19:38:27 UTC 2024
    - 165.9K bytes
    - Viewed (0)
Back to top