Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for MoreObjects (0.08 sec)

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

       *
       * <pre>{@code
       * // 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 10 15:41:27 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. android/guava-tests/test/com/google/common/base/MoreObjectsTest.java

    import junit.framework.TestCase;
    
    /** Tests for {@link MoreObjects}. */
    @GwtCompatible(emulated = true)
    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 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

    import junit.framework.TestCase;
    
    /** Tests for {@link MoreObjects}. */
    @GwtCompatible(emulated = true)
    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 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/src/com/google/common/graph/ElementOrder.java

    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.base.Preconditions.checkState;
    
    import com.google.common.annotations.Beta;
    import com.google.common.base.MoreObjects;
    import com.google.common.base.MoreObjects.ToStringHelper;
    import com.google.common.base.Objects;
    import com.google.common.collect.Maps;
    import com.google.common.collect.Ordering;
    import com.google.errorprone.annotations.Immutable;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/graph/ElementOrder.java

    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.base.Preconditions.checkState;
    
    import com.google.common.annotations.Beta;
    import com.google.common.base.MoreObjects;
    import com.google.common.base.MoreObjects.ToStringHelper;
    import com.google.common.base.Objects;
    import com.google.common.collect.Maps;
    import com.google.common.collect.Ordering;
    import com.google.errorprone.annotations.Immutable;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  9. 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.base.Objects;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.Lists;
    import java.io.Closeable;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  10. android/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.base.Objects;
    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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:16:45 UTC 2024
    - 10.8K bytes
    - Viewed (0)
Back to top