Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,278 for maps (0.33 sec)

  1. android/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);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 159.3K bytes
    - Viewed (0)
  2. 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;
    Java
    - Registered: Fri Apr 19 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/MapsTest.java

        TreeMap<Integer, Integer> map = Maps.newTreeMap(SOME_COMPARATOR);
        assertEquals(Collections.emptyMap(), map);
        assertSame(SOME_COMPARATOR, map.comparator());
      }
    
      public void testTreeMapWithInitialMap() {
        SortedMap<Integer, Integer> map = Maps.newTreeMap();
        map.put(5, 10);
        map.put(3, 20);
        map.put(1, 30);
        TreeMap<Integer, Integer> copy = Maps.newTreeMap(map);
        assertEquals(copy, map);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/MapsTest.java

        TreeMap<Integer, Integer> map = Maps.newTreeMap(SOME_COMPARATOR);
        assertEquals(Collections.emptyMap(), map);
        assertSame(SOME_COMPARATOR, map.comparator());
      }
    
      public void testTreeMapWithInitialMap() {
        SortedMap<Integer, Integer> map = Maps.newTreeMap();
        map.put(5, 10);
        map.put(3, 20);
        map.put(1, 30);
        TreeMap<Integer, Integer> copy = Maps.newTreeMap(map);
        assertEquals(copy, map);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/AbstractMapsTransformValuesTest.java

        assertEquals("1", map.remove("a"));
        assertNull(map.remove("b"));
      }
    
      public void testTransformEqualityOfMapsWithNullValues() {
        Map<String, @Nullable String> underlying = Maps.newHashMap();
        underlying.put("a", null);
        underlying.put("b", "");
    
        Map<String, Boolean> map =
            Maps.transformValues(
                underlying,
    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)
  6. guava-tests/test/com/google/common/collect/AbstractMapsTransformValuesTest.java

        assertEquals("1", map.remove("a"));
        assertNull(map.remove("b"));
      }
    
      public void testTransformEqualityOfMapsWithNullValues() {
        Map<String, @Nullable String> underlying = Maps.newHashMap();
        underlying.put("a", null);
        underlying.put("b", "");
    
        Map<String, Boolean> map =
            Maps.transformValues(
                underlying,
    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)
  7. android/guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

        Map<String, Integer> equalToUnderlying = Maps.newTreeMap();
        equalToUnderlying.putAll(underlying);
        Map<String, Integer> map =
            Maps.transformValues(equalToUnderlying, Functions.<Integer>identity());
        assertMapsEqual(expected, map);
    
        map =
            Maps.transformValues(
                ImmutableMap.of("a", 1, "b", 2, "c", 3),
                new Function<Integer, Integer>() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/AbstractTable.java

        for (Map<C, V> row : rowMap().values()) {
          if (row.containsValue(value)) {
            return true;
          }
        }
        return false;
      }
    
      @Override
      public boolean contains(@CheckForNull Object rowKey, @CheckForNull Object columnKey) {
        Map<C, V> row = Maps.safeGet(rowMap(), rowKey);
        return row != null && Maps.safeContainsKey(row, columnKey);
      }
    
      @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Jul 15 15:41:16 GMT 2021
    - 6.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableEnumMapTest.java

        @Override
        protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) {
          Map<AnEnum, String> map = Maps.newHashMap();
          for (Entry<AnEnum, String> entry : entries) {
            map.put(entry.getKey(), entry.getValue());
          }
          return Maps.immutableEnumMap(map);
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // suite
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

      public void testForMapSerialization() {
        Map<String, Integer> map = Maps.newHashMap();
        map.put("foo", 1);
        map.put("bar", 2);
        Multimap<String, Integer> multimapView = Multimaps.forMap(map);
        SerializableTester.reserializeAndAssert(multimapView);
      }
    
      public void testForMapRemoveAll() {
        Map<String, Integer> map = Maps.newHashMap();
        map.put("foo", 1);
        map.put("bar", 2);
        map.put("cow", 3);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 39.1K bytes
    - Viewed (0)
Back to top