- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for nullToEmpty (0.05 seconds)
-
guava-gwt/src-super/com/google/common/base/super/com/google/common/base/Platform.java
@JsMethod static native boolean stringIsNullOrEmpty(@Nullable String string) /*-{ return !string; }-*/; @JsMethod static native String nullToEmpty(@Nullable String string) /*-{ return string || ""; }-*/; @JsMethod static native String emptyToNull(@Nullable String string) /*-{ return string || null; }-*/;
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/Platform.java
* * @param string the string to test and possibly return * @return {@code string} if it is not null; {@code ""} otherwise */ static String nullToEmpty(@Nullable String string) { return (string == null) ? "" : string; } /** * Returns the string if it is not empty, or a null string otherwise. * * @param string the string to test and possibly returnCreated: 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
* * @param string the string to test and possibly return * @return {@code string} if it is not null; {@code ""} otherwise */ static String nullToEmpty(@Nullable String string) { return (string == null) ? "" : string; } /** * Returns the string if it is not empty, or a null string otherwise. * * @param string the string to test and possibly returnCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Dec 29 17:36:00 GMT 2025 - 4.1K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/base/super/com/google/common/base/Platform.native.js
* @public */ Platform.stringIsNullOrEmpty = function(str) { return !str; }; /** * @param {?string} str * @return {string} Original str, if it is non-null. Otherwise empty string. */ Platform.nullToEmpty = function(str) { return str || ""; }; /** * @param {?string} str * @return {string} Original str, if it is non-empty. Otherwise null; */ Platform.emptyToNull = function(str) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 25 14:03:03 GMT 2020 - 527 bytes - Click Count (0)