- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for addValue (0.09 sec)
-
android/guava-tests/test/com/google/common/base/ToStringHelperTest.java
public void testToString_addValueWithNullValue() { final String result = MoreObjects.toStringHelper(new TestClass()) .addValue(null) .addValue("Hello") .addValue(null) .toString(); final String expected = "TestClass{null, Hello, null}"; assertEquals(expected, result); }
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/src/com/google/common/base/MoreObjects.java
public ToStringHelper addValue(@CheckForNull Object value) { return addHolder(value); } /** * Adds an unnamed value to the formatted output. * * <p>It is strongly encouraged to use {@link #add(String, boolean)} instead and give value a * readable name. * * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.addValue()}). */ @CanIgnoreReturnValue
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 10 15:41:27 UTC 2024 - 16.1K bytes - Viewed (0)