Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for emptyToNull (0.22 sec)

  1. guava-gwt/src-super/com/google/common/base/super/com/google/common/base/Platform.native.js

     */
    Platform.nullToEmpty = function(str) {
      return str || "";
    };
    
    
    /**
     * @param {?string} str
     * @return {string} Original str, if it is non-empty. Otherwise null;
     */
    Platform.emptyToNull = function(str) {
      return str || null;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Mar 25 14:03:03 UTC 2020
    - 527 bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/StringsTest.java

        assertEquals("", Strings.nullToEmpty(""));
        assertEquals("a", Strings.nullToEmpty("a"));
      }
    
      public void testEmptyToNull() {
        assertNull(Strings.emptyToNull(null));
        assertNull(Strings.emptyToNull(""));
        assertEquals("a", Strings.emptyToNull("a"));
      }
    
      public void testIsNullOrEmpty() {
        assertTrue(Strings.isNullOrEmpty(null));
        assertTrue(Strings.isNullOrEmpty(""));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/StringsTest.java

        assertEquals("", Strings.nullToEmpty(""));
        assertEquals("a", Strings.nullToEmpty("a"));
      }
    
      public void testEmptyToNull() {
        assertNull(Strings.emptyToNull(null));
        assertNull(Strings.emptyToNull(""));
        assertEquals("a", Strings.emptyToNull("a"));
      }
    
      public void testIsNullOrEmpty() {
        assertTrue(Strings.isNullOrEmpty(null));
        assertTrue(Strings.isNullOrEmpty(""));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/base/super/com/google/common/base/Platform.java

        return !string;
      }-*/;
    
      @JsMethod
      static native String nullToEmpty(@Nullable String string) /*-{
        return string || "";
      }-*/;
    
      @JsMethod
      static native String emptyToNull(@Nullable String string) /*-{
        return string || null;
      }-*/;
    
      static CommonPattern compilePattern(String pattern) {
        throw new UnsupportedOperationException();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon May 27 13:56:56 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Platform.java

       *
       * @param string the string to test and possibly return
       * @return {@code string} if it is not empty; {@code null} otherwise
       */
      @CheckForNull
      static String emptyToNull(@CheckForNull String string) {
        return stringIsNullOrEmpty(string) ? null : string;
      }
    
      static CommonPattern compilePattern(String pattern) {
        Preconditions.checkNotNull(pattern);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 15 22:32:14 UTC 2024
    - 3.9K bytes
    - Viewed (0)
Back to top