- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for defaultString (0.12 sec)
-
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) -
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)