Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for toStringImpl (0.04 sec)

  1. android/guava-tests/test/com/google/common/collect/MapsTest.java

        hashmap.put(null, "baz");
    
        assertEquals(hashmap.toString(), Maps.toStringImpl(hashmap));
      }
    
      public void testToStringImplWithNullValues() throws Exception {
        Map<String, @Nullable String> hashmap = new HashMap<>();
        hashmap.put("foo", "bar");
        hashmap.put("baz", null);
    
        assertEquals(hashmap.toString(), Maps.toStringImpl(hashmap));
      }
    
      @J2ktIncompatible
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 22:56:33 UTC 2025
    - 62.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/MapsTest.java

        hashmap.put(null, "baz");
    
        assertEquals(hashmap.toString(), Maps.toStringImpl(hashmap));
      }
    
      public void testToStringImplWithNullValues() throws Exception {
        Map<String, @Nullable String> hashmap = new HashMap<>();
        hashmap.put("foo", "bar");
        hashmap.put("baz", null);
    
        assertEquals(hashmap.toString(), Maps.toStringImpl(hashmap));
      }
    
      @J2ktIncompatible
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 22:56:33 UTC 2025
    - 65K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Maps.java

          Map<?, ?> o = (Map<?, ?>) object;
          return map.entrySet().equals(o.entrySet());
        }
        return false;
      }
    
      /** An implementation of {@link Map#toString}. */
      static String toStringImpl(Map<?, ?> map) {
        StringBuilder sb = Collections2.newStringBuilderForCollection(map.size()).append('{');
        boolean first = true;
        for (Entry<?, ?> entry : map.entrySet()) {
          if (!first) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 163.5K bytes
    - Viewed (0)
Back to top