Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for MoreObjects (0.04 sec)

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

       *
       * {@snippet :
       * // Returns "ClassName{}"
       * MoreObjects.toStringHelper(this)
       *     .toString();
       *
       * // Returns "ClassName{x=1}"
       * MoreObjects.toStringHelper(this)
       *     .add("x", 1)
       *     .toString();
       *
       * // Returns "MyObject{x=1}"
       * MoreObjects.toStringHelper("MyObject")
       *     .add("x", 1)
       *     .toString();
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/MoreObjects.java

       *
       * {@snippet :
       * // Returns "ClassName{}"
       * MoreObjects.toStringHelper(this)
       *     .toString();
       *
       * // Returns "ClassName{x=1}"
       * MoreObjects.toStringHelper(this)
       *     .add("x", 1)
       *     .toString();
       *
       * // Returns "MyObject{x=1}"
       * MoreObjects.toStringHelper("MyObject")
       *     .add("x", 1)
       *     .toString();
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/MoreObjectsTest.java

    import org.jspecify.annotations.NullUnmarked;
    
    /** Tests for {@link MoreObjects}. */
    @GwtCompatible
    @NullUnmarked
    public class MoreObjectsTest extends TestCase {
      public void testFirstNonNull_withNonNull() {
        String s1 = "foo";
        String s2 = MoreObjects.firstNonNull(s1, "bar");
        assertSame(s1, s2);
    
        Long n1 = 42L;
        Long n2 = MoreObjects.firstNonNull(null, n1);
        assertSame(n1, n2);
    
        Boolean b1 = true;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 2.1K 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) {
    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. guava/src/com/google/common/eventbus/SubscriberRegistry.java

    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.base.Preconditions.checkNotNull;
    
    import com.google.common.annotations.VisibleForTesting;
    import com.google.common.base.MoreObjects;
    import com.google.common.cache.CacheBuilder;
    import com.google.common.cache.CacheLoader;
    import com.google.common.cache.LoadingCache;
    import com.google.common.collect.HashMultimap;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/TableCollectorsTest.java

              collector =
                  toImmutableTable(
                      Cell::getRowKey,
                      Cell::getColumnKey,
                      Cell::getValue,
                      (i, j) -> MoreObjects.firstNonNull(i, 0) + MoreObjects.firstNonNull(j, 0));
          assertThrows(
              NullPointerException.class,
              () ->
                  Stream.of(immutableCell("one", "uno", 1), immutableCell("one", "uno", (Integer) null))
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/CacheBuilderFactory.java

     * the License.
     */
    
    package com.google.common.cache;
    
    import com.google.common.base.Function;
    import com.google.common.base.MoreObjects;
    import com.google.common.base.Optional;
    import com.google.common.base.Preconditions;
    import com.google.common.cache.LocalCache.Strength;
    import com.google.common.collect.Iterables;
    import com.google.common.collect.Lists;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/cache/CacheBuilder.java

      /**
       * Returns a string representation for this CacheBuilder 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) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 51.7K bytes
    - Viewed (0)
  9. 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)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/CloserTest.java

    import static com.google.common.base.Throwables.throwIfInstanceOf;
    import static com.google.common.base.Throwables.throwIfUnchecked;
    import static com.google.common.truth.Truth.assertThat;
    
    import com.google.common.base.MoreObjects;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.ImmutableSet;
    import java.io.Closeable;
    import java.io.IOException;
    import java.util.ArrayList;
    import java.util.List;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 11.8K bytes
    - Viewed (0)
Back to top