Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for defaultString (0.12 sec)

  1. src/test/java/org/codelibs/core/lang/StringUtilTest.java

        public void testDefaultString() {
            assertThat(StringUtil.defaultString(null), is(""));
            assertThat(StringUtil.defaultString(""), is(""));
            assertThat(StringUtil.defaultString("aaa"), is("aaa"));
        }
    
        /**
         *
         */
        @Test
        public void testDefaultStringDefaultStr() {
            assertThat(StringUtil.defaultString(null, "NULL"), is("NULL"));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 12K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/lang/StringUtil.java

         * <p>
         * 次のように使います.
         * </p>
         *
         * <pre>
         * StringUtil.defaultString(null, "NULL")  = "NULL"
         * StringUtil.defaultString("", "NULL")    = ""
         * StringUtil.defaultString("aaa", "NULL") = "aaa"
         * StringUtil.defaultString("aaa", null) = "aaa"
         * StringUtil.defaultString(null, null) = null
         * </pre>
         *
         * @param str
         *            文字列(<code>null</code>可)
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 21.7K bytes
    - Viewed (0)
Back to top