Lines Matching defs:string
47 * be converted to a string using {@link String#valueOf(Object)}
57 * Ensures that an string reference passed as a parameter to the calling
60 * @param string an string reference
61 * @return the string reference that was validated
62 * @throws IllegalArgumentException if {@code string} is empty
64 public static @NonNull <T extends CharSequence> T checkStringNotEmpty(final T string) {
65 if (TextUtils.isEmpty(string)) {
68 return string;
72 * Ensures that an string reference passed as a parameter to the calling
75 * @param string an string reference
77 * be converted to a string using {@link String#valueOf(Object)}
78 * @return the string reference that was validated
79 * @throws IllegalArgumentException if {@code string} is empty
81 public static @NonNull <T extends CharSequence> T checkStringNotEmpty(final T string,
83 if (TextUtils.isEmpty(string)) {
86 return string;
110 * be converted to a string using {@link String#valueOf(Object)}