- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 16 for lenientFormat (0.11 seconds)
-
android/guava/src/com/google/common/base/Verify.java
* or implied. See the License for the specific language governing permissions and limitations under * the License. */ package com.google.common.base; import static com.google.common.base.Strings.lenientFormat; import com.google.common.annotations.GwtCompatible; import com.google.errorprone.annotations.CanIgnoreReturnValue; import org.jspecify.annotations.Nullable; /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Dec 29 17:36:00 GMT 2025 - 18.5K bytes - Click Count (0) -
guava/src/com/google/common/base/Preconditions.java
private static String badElementIndex(int index, int size, String desc) { if (index < 0) { return lenientFormat("%s (%s) must not be negative", desc, index); } else if (size < 0) { throw new IllegalArgumentException("negative size: " + size); } else { // index >= size return lenientFormat("%s (%s) must be less than size (%s)", desc, index, size); } } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 08 18:10:02 GMT 2026 - 53.5K bytes - Click Count (0) -
guava/src/com/google/common/base/Verify.java
* or implied. See the License for the specific language governing permissions and limitations under * the License. */ package com.google.common.base; import static com.google.common.base.Strings.lenientFormat; import com.google.common.annotations.GwtCompatible; import com.google.errorprone.annotations.CanIgnoreReturnValue; import org.jspecify.annotations.Nullable; /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Dec 29 17:36:00 GMT 2025 - 18.5K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Preconditions.java
private static String badElementIndex(int index, int size, String desc) { if (index < 0) { return lenientFormat("%s (%s) must not be negative", desc, index); } else if (size < 0) { throw new IllegalArgumentException("negative size: " + size); } else { // index >= size return lenientFormat("%s (%s) must be less than size (%s)", desc, index, size); } } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 08 18:10:02 GMT 2026 - 53.5K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/base/super/com/google/common/base/Platform.java
} static boolean patternCompilerIsPcreLike() { throw new UnsupportedOperationException(); } static String lenientFormat(@Nullable String template, @Nullable Object @Nullable ... args) { return Strings.lenientFormat(template, args); } static String stringValueOf(@Nullable Object o) { return String.valueOf(o); } private Platform() {}
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 03 21:52:39 GMT 2025 - 2.2K bytes - Click Count (0) -
guava/src/com/google/common/base/Strings.java
* non-null values are converted to strings using {@link Object#toString()}. * @since 25.1 */ // TODO(diamondm) consider using Arrays.toString() for array parameters public static String lenientFormat( @Nullable String template, @Nullable Object @Nullable ... args) { template = String.valueOf(template); // null -> "null" if (args == null) { args = new Object[] {"(Object[])null"}; }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 22:14:05 GMT 2026 - 12.5K bytes - Click Count (0) -
guava/src/com/google/common/base/Platform.java
*/ static @Nullable String emptyToNull(@Nullable String string) { return stringIsNullOrEmpty(string) ? null : string; } static String lenientFormat( @Nullable String template, @Nullable Object @Nullable ... args) { return Strings.lenientFormat(template, args); } static String stringValueOf(@Nullable Object o) { return String.valueOf(o); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Dec 29 17:36:00 GMT 2025 - 3.7K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Platform.java
*/ static @Nullable String emptyToNull(@Nullable String string) { return stringIsNullOrEmpty(string) ? null : string; } static String lenientFormat( @Nullable String template, @Nullable Object @Nullable ... args) { return Strings.lenientFormat(template, args); } static String stringValueOf(@Nullable Object o) { return String.valueOf(o); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Dec 29 17:36:00 GMT 2025 - 4.1K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Strings.java
* non-null values are converted to strings using {@link Object#toString()}. * @since 25.1 */ // TODO(diamondm) consider using Arrays.toString() for array parameters public static String lenientFormat( @Nullable String template, @Nullable Object @Nullable ... args) { template = String.valueOf(template); // null -> "null" if (args == null) { args = new Object[] {"(Object[])null"}; }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 22:14:05 GMT 2026 - 12.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/StringsTest.java
assertThat(Strings.lenientFormat("%s")).isEqualTo("%s"); assertThat(Strings.lenientFormat("%s", 5)).isEqualTo("5"); assertThat(Strings.lenientFormat("foo", 5)).isEqualTo("foo [5]"); assertThat(Strings.lenientFormat("foo", 5, 6, 7)).isEqualTo("foo [5, 6, 7]"); assertThat(Strings.lenientFormat("%s %s %s", "%s", 1, 2)).isEqualTo("%s 1 2"); assertThat(Strings.lenientFormat("", 5, 6)).isEqualTo(" [5, 6]");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 11.4K bytes - Click Count (0)