Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for ToStringHelper (0.11 sec)

  1. android/guava-tests/test/com/google/common/base/ToStringHelperTest.java

        assertTrue(toTest, toTest.matches(".*\\{\\}"));
      }
    
      @GwtIncompatible // Class names are obfuscated in GWT
      public void testConstructor_anonymousClass() {
        String toTest = MoreObjects.toStringHelper(new Object() {}).toString();
        assertEquals("{}", toTest);
      }
    
      public void testConstructorLenient_anonymousClass() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 09 21:19:18 UTC 2024
    - 21.3K 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 10 15:41:27 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/ElementOrder.java

      }
    
      @Override
      public int hashCode() {
        return Objects.hashCode(type, comparator);
      }
    
      @Override
      public String toString() {
        ToStringHelper helper = MoreObjects.toStringHelper(this).add("type", type);
        if (comparator != null) {
          helper.add("comparator", comparator);
        }
        return helper.toString();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/graph/ElementOrder.java

      }
    
      @Override
      public int hashCode() {
        return Objects.hashCode(type, comparator);
      }
    
      @Override
      public String toString() {
        ToStringHelper helper = MoreObjects.toStringHelper(this).add("type", type);
        if (comparator != null) {
          helper.add("comparator", comparator);
        }
        return helper.toString();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 6.7K 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  7. android/guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java

        final int item;
    
        TestObject(int group, int item) {
          this.group = group;
          this.item = item;
        }
    
        @Override
        public String toString() {
          return MoreObjects.toStringHelper("TestObject")
              .add("group", group)
              .add("item", item)
              .toString();
        }
      }
    
      private static final class MockEquivalence extends Equivalence<Object> {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  8. guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java

        final int item;
    
        TestObject(int group, int item) {
          this.group = group;
          this.item = item;
        }
    
        @Override
        public String toString() {
          return MoreObjects.toStringHelper("TestObject")
              .add("group", group)
              .add("item", item)
              .toString();
        }
      }
    
      private static final class MockEquivalence extends Equivalence<Object> {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  9. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/cache/CacheStats.java

              && totalLoadTime == other.totalLoadTime
              && evictionCount == other.evictionCount;
        }
        return false;
      }
    
      @Override
      public String toString() {
        return MoreObjects.toStringHelper(this)
            .add("hitCount", hitCount)
            .add("missCount", missCount)
            .add("loadSuccessCount", loadSuccessCount)
            .add("loadExceptionCount", loadExceptionCount)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.6K bytes
    - Viewed (0)
Back to top