Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 9 of 9 for toStringImpl (0.08 seconds)

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

      }
    
      public void testToStringImplWithNullEntries() throws Exception {
        List<@Nullable String> list = new ArrayList<>();
        list.add("foo");
        list.add(null);
    
        assertThat(Collections2.toStringImpl(list)).isEqualTo(list.toString());
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 20.1K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/collect/Collections2Test.java

      }
    
      public void testToStringImplWithNullEntries() throws Exception {
        List<@Nullable String> list = new ArrayList<>();
        list.add("foo");
        list.add(null);
    
        assertThat(Collections2.toStringImpl(list)).isEqualTo(list.toString());
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 20.1K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/Collections2.java

        for (Object o : c) {
          if (!self.contains(o)) {
            return false;
          }
        }
        return true;
      }
    
      /** An implementation of {@link Collection#toString()}. */
      static String toStringImpl(Collection<?> collection) {
        StringBuilder sb = newStringBuilderForCollection(collection.size()).append('[');
        boolean first = true;
        for (Object o : collection) {
          if (!first) {
            sb.append(", ");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 23K bytes
    - Click Count (0)
  4. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableMap.java

        // in a way that modifies their hash codes
        return entrySet().hashCode();
      }
    
      @Override
      public String toString() {
        return Maps.toStringImpl(this);
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 15:51:42 GMT 2026
    - 17.2K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/collect/MapsTest.java

        hashmap.put(null, "baz");
    
        assertThat(Maps.toStringImpl(hashmap)).isEqualTo(hashmap.toString());
      }
    
      public void testToStringImplWithNullValues() throws Exception {
        Map<String, @Nullable String> hashmap = new HashMap<>();
        hashmap.put("foo", "bar");
        hashmap.put("baz", null);
    
        assertThat(Maps.toStringImpl(hashmap)).isEqualTo(hashmap.toString());
      }
    
      @J2ktIncompatible
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 63.2K bytes
    - Click Count (0)
  6. android/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) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 157.6K bytes
    - Click Count (0)
  7. 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) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 163.4K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/ImmutableMap.java

      public int hashCode() {
        return Sets.hashCodeImpl(entrySet());
      }
    
      boolean isHashCodeFast() {
        return false;
      }
    
      @Override
      public String toString() {
        return Maps.toStringImpl(this);
      }
    
      /**
       * Serialized type for all ImmutableMap instances. It captures the logical contents and they are
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 02 19:58:40 GMT 2026
    - 41.2K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/ImmutableMap.java

      public int hashCode() {
        return Sets.hashCodeImpl(entrySet());
      }
    
      boolean isHashCodeFast() {
        return false;
      }
    
      @Override
      public String toString() {
        return Maps.toStringImpl(this);
      }
    
      /**
       * Serialized type for all ImmutableMap instances. It captures the logical contents and they are
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 44.7K bytes
    - Click Count (0)
Back to Top