Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for omitNullValues (0.21 sec)

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

         * methods, is not significant.
         *
         * @since 18.0 (since 12.0 as {@code Objects.ToStringHelper.omitNullValues()}).
         */
        @CanIgnoreReturnValue
        public ToStringHelper omitNullValues() {
          omitNullValues = true;
          return this;
        }
    
        /**
         * Configures the {@link ToStringHelper} so {@link #toString()} will ignore properties with
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 10 15:41:27 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/ToStringHelperTest.java

        String toTest =
            MoreObjects.toStringHelper(new TestClass())
                .omitNullValues()
                .omitNullValues()
                .add("field1", "Hello")
                .omitNullValues()
                .add("field2", "Googley")
                .omitNullValues()
                .add("field3", "World")
                .toString();
    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. guava-tests/benchmark/com/google/common/base/ToStringHelperBenchmark.java

      private MoreObjects.ToStringHelper newHelper() {
        MoreObjects.ToStringHelper helper = MoreObjects.toStringHelper("klass");
        if (omitNulls) {
          helper = helper.omitNullValues();
        }
        return helper;
      }
    
      @Benchmark
      int toString(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          MoreObjects.ToStringHelper helper = newHelper();
    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-tests/benchmark/com/google/common/base/ToStringHelperBenchmark.java

      private MoreObjects.ToStringHelper newHelper() {
        MoreObjects.ToStringHelper helper = MoreObjects.toStringHelper("klass");
        if (omitNulls) {
          helper = helper.omitNullValues();
        }
        return helper;
      }
    
      @Benchmark
      int toString(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          MoreObjects.ToStringHelper helper = newHelper();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top