Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,041 for maps (0.02 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java

        assertFalse(
            "Maps of different sizes should not be equal.", getMap().equals(newHashMap(moreEntries)));
      }
    
      public void testEquals_list() {
        assertFalse(
            "A List should never equal a Map.", getMap().equals(copyToList(getMap().entrySet())));
      }
    
      private static <K, V> Map<K, V> newHashMap(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableMap.java

    import java.util.Collections;
    import java.util.Map;
    import java.util.Set;
    import org.jspecify.annotations.Nullable;
    
    /**
     * GWT implementation of {@link ImmutableMap} that forwards to another map.
     *
     * @author Hayward Chan
     */
    public abstract class ForwardingImmutableMap<K, V> extends ImmutableMap<K, V> {
    
      final transient Map<K, V> delegate;
    
      ForwardingImmutableMap(Map<? extends K, ? extends V> delegate) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java

        assertThat(multimap.entries())
            .containsExactly(
                Maps.<@Nullable String, Integer>immutableEntry(null, 7),
                Maps.<@Nullable String, Integer>immutableEntry(null, 3),
                Maps.<@Nullable String, Integer>immutableEntry(null, 1),
                Maps.<String, @Nullable Integer>immutableEntry("tree", null),
                immutableEntry("tree", 0),
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/collect/super/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 ImmutableSortedMap)) {
          @SuppressWarnings("unchecked") // safe since map is not writable
          ImmutableMap<K, V> kvMap = (ImmutableMap<K, V>) map;
          return kvMap;
        } else if (map instanceof EnumMap) {
          EnumMap<?, ?> enumMap = (EnumMap<?, ?>) map;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MapsSortedTransformValuesTest.java

     */
    
    package com.google.common.collect;
    
    import static com.google.common.collect.Maps.transformValues;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.Function;
    import com.google.common.base.Functions;
    import java.util.SortedMap;
    import org.jspecify.annotations.NullMarked;
    
    /**
     * Tests for {@link Maps#transformValues(SortedMap, Function)}.
     *
     * @author Louis Wasserman
     */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/reflect/TypeToInstanceMap.java

    import com.google.errorprone.annotations.DoNotMock;
    import java.util.Map;
    import org.jspecify.annotations.NonNull;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A map, each entry of which maps a {@link TypeToken} to an instance of that type. In addition to
     * implementing {@code Map}, the additional type-safe operations {@link #putInstance} and {@link
     * #getInstance} are available.
     *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/reflect/TypeToInstanceMap.java

    import com.google.errorprone.annotations.DoNotMock;
    import java.util.Map;
    import org.jspecify.annotations.NonNull;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A map, each entry of which maps a {@link TypeToken} to an instance of that type. In addition to
     * implementing {@code Map}, the additional type-safe operations {@link #putInstance} and {@link
     * #getInstance} are available.
     *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/util/MemoryUtilTest.java

            mixedMap.put(123, 456);
            mixedMap.put(null, "test");
            assertEquals(228L, MemoryUtil.sizeOf(mixedMap));
    
            // Nested maps
            Map<String, Map<String, String>> nestedMap = new HashMap<>();
            nestedMap.put("outer", Maps.map("inner", "value").$());
            assertEquals(183L, MemoryUtil.sizeOf(nestedMap));
        }
    
        public void test_sizeOf_customObjects() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/Platform.java

    final class Platform {
      static <K extends @Nullable Object, V extends @Nullable Object>
          Map<K, V> newHashMapWithExpectedSize(int expectedSize) {
        return Maps.newHashMapWithExpectedSize(expectedSize);
      }
    
      static <K extends @Nullable Object, V extends @Nullable Object>
          Map<K, V> newLinkedHashMapWithExpectedSize(int expectedSize) {
        return Maps.newLinkedHashMapWithExpectedSize(expectedSize);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jun 10 15:17:16 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/MapsTransformValuesTest.java

    package com.google.common.collect;
    
    import static com.google.common.collect.Maps.transformValues;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.Function;
    import com.google.common.base.Functions;
    import java.util.HashMap;
    import java.util.Map;
    import org.jspecify.annotations.NullMarked;
    
    /**
     * Tests for {@link Maps#transformValues(Map, Function)}.
     *
     * @author Isaac Shum
     */
    @GwtCompatible
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 1.5K bytes
    - Viewed (0)
Back to top