- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 35 for MoreObjects (0.1 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
guava/src/com/google/common/collect/FilteredEntryMultimap.java
import static java.util.Collections.unmodifiableList; import static java.util.Collections.unmodifiableSet; import com.google.common.annotations.GwtCompatible; import com.google.common.base.MoreObjects; import com.google.common.base.Predicate; import com.google.common.collect.Maps.ViewCachingAbstractMap; import com.google.j2objc.annotations.WeakOuter; import java.util.Collection; import java.util.Collections;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 12.1K bytes - Viewed (0)