Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for ToStringHelper (0.26 sec)

  1. guava/src/com/google/common/base/MoreObjects.java

       *     class name
       * @since 18.0 (since 2.0 as {@code Objects.toStringHelper()}).
       */
      public static ToStringHelper toStringHelper(Object self) {
        return new ToStringHelper(self.getClass().getSimpleName());
      }
    
      /**
       * Creates an instance of {@link ToStringHelper} in the same manner as {@link
       * #toStringHelper(Object)}, but using the simple name of {@code clazz} instead of using an
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/MoreObjects.java

       *     class name
       * @since 18.0 (since 2.0 as {@code Objects.toStringHelper()}).
       */
      public static ToStringHelper toStringHelper(Object self) {
        return new ToStringHelper(self.getClass().getSimpleName());
      }
    
      /**
       * Creates an instance of {@link ToStringHelper} in the same manner as {@link
       * #toStringHelper(Object)}, but using the simple name of {@code clazz} instead of using an
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Predicates.java

          }
          return false;
        }
    
        @Override
        public String toString() {
          return toStringHelper("or", components);
        }
    
        @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0;
      }
    
      private static String toStringHelper(String methodName, Iterable<?> components) {
        StringBuilder builder = new StringBuilder("Predicates.").append(methodName).append('(');
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/MapMaker.java

      /**
       * Returns a string representation for this MapMaker instance. The exact form of the returned
       * string is not specified.
       */
      @Override
      public String toString() {
        MoreObjects.ToStringHelper s = MoreObjects.toStringHelper(this);
        if (initialCapacity != UNSET_INT) {
          s.add("initialCapacity", initialCapacity);
        }
        if (concurrencyLevel != UNSET_INT) {
          s.add("concurrencyLevel", concurrencyLevel);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/MoreObjectsTest.java

        tester.ignore(MoreObjects.class.getMethod("firstNonNull", Object.class, Object.class));
        tester.testAllPublicStaticMethods(MoreObjects.class);
        tester.testAllPublicInstanceMethods(MoreObjects.toStringHelper(new TestClass()));
      }
    
      /** Test class for testing formatting of inner classes. */
      private static class TestClass {}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/math/PairedStats.java

      }
    
      @Override
      public String toString() {
        if (count() > 0) {
          return MoreObjects.toStringHelper(this)
              .add("xStats", xStats)
              .add("yStats", yStats)
              .add("populationCovariance", populationCovariance())
              .toString();
        } else {
          return MoreObjects.toStringHelper(this)
              .add("xStats", xStats)
              .add("yStats", yStats)
              .toString();
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/CloserTest.java

        }
    
        @Override
        public int hashCode() {
          return Objects.hash(closeable, thrown, suppressed);
        }
    
        @Override
        public String toString() {
          return MoreObjects.toStringHelper(this)
              .add("closeable", closeable)
              .add("thrown", thrown)
              .add("suppressed", suppressed)
              .toString();
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/cache/CacheBuilderFactory.java

            return unit.toNanos(duration) == that.unit.toNanos(that.duration);
          }
          return false;
        }
    
        @Override
        public String toString() {
          return MoreObjects.toStringHelper(this)
              .add("duration", duration)
              .add("unit", unit)
              .toString();
        }
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/CloserTest.java

        }
    
        @Override
        public int hashCode() {
          return Objects.hash(closeable, thrown, suppressed);
        }
    
        @Override
        public String toString() {
          return MoreObjects.toStringHelper(this)
              .add("closeable", closeable)
              .add("thrown", thrown)
              .add("suppressed", suppressed)
              .toString();
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/math/Stats.java

        if (count() > 0) {
          return MoreObjects.toStringHelper(this)
              .add("count", count)
              .add("mean", mean)
              .add("populationStandardDeviation", populationStandardDeviation())
              .add("min", min)
              .add("max", max)
              .toString();
        } else {
          return MoreObjects.toStringHelper(this).add("count", count).toString();
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 24.8K bytes
    - Viewed (0)
Back to top