Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for toStringHelper (0.41 sec)

  1. guava-tests/benchmark/com/google/common/base/ToStringHelperBenchmark.java

          }
        };
    
        void addEntries(MoreObjects.ToStringHelper helper) {}
      }
    
      @Param Dataset dataset;
    
      private static final String SHORT_NAME = "userId";
      private static final String LONG_NAME = "fluxCapacitorFailureRate95Percentile";
    
      private MoreObjects.ToStringHelper newHelper() {
        MoreObjects.ToStringHelper helper = MoreObjects.toStringHelper("klass");
        if (omitNulls) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. 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)
  3. android/guava-tests/benchmark/com/google/common/base/ToStringHelperBenchmark.java

          }
        };
    
        void addEntries(MoreObjects.ToStringHelper helper) {}
      }
    
      @Param Dataset dataset;
    
      private static final String SHORT_NAME = "userId";
      private static final String LONG_NAME = "fluxCapacitorFailureRate95Percentile";
    
      private MoreObjects.ToStringHelper newHelper() {
        MoreObjects.ToStringHelper helper = MoreObjects.toStringHelper("klass");
        if (omitNulls) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top