[
トップ|
一覧|
単語検索|
最終更新|
バックアップ|
ヘルプ]
- 追加された行はこの色です。
- 削除された行はこの色です。
*[[Jakarta Commons Lang:http://jakarta.apache.org/commons/lang/]]
-boolean ''isEmpty''(String)
||''null''|''""''|''" "''|''"abc"''|
|''isEmpty''|true|true|false|false|
|''isNotEmpty''|false|false|true|true|
|''isBlank''|true|true|true|false|
|''isNotBlank''|false|false|false|true|
if (StringUtils.isEmpty(str)) {
System.out.println(str.toUpperCase());
}
-boolean ''equals''(String, String)
||''null, null''|''null, "abc"''|''"abc", null''|''"abc", "abc"''|''"abc", "ABC"''|
|''equals''|true|false|false|true|false|
|''equalsIgnoreCase''|true|false|false|true|true|
-String ''trim''(String)
||''null''|''""''|''" "''|''"abc"''|''" abc "''|
|''trim''|null|""|""|"abc"|"abc"|
|''trimToNull''|null|null|null|"abc"|"abc"|
|''trimToEmpty''|""|""|""|"abc"|"abc"|
-String ''strip''(String)
||''null''|''""''|''" "''|''"abc"''|''" abc"''|''"abc "''|''" abc "''|
|''strip''|null|""|""|"abc"|"abc"|"abc"|"abc"|
|''stripToNull''|null|null|null|"abc"|"abc"|"abc"|"abc"|
|''trimToEmpty''|""|""|""|"abc"|"abc"|"abc"|"abc"|
-String[] split(String)
StringUtils.split(" abc def ") -> ["abc", "def"]
-String[] split(String, String)
StringUtils.split("abc def", null) -> ["abc", "def"]
StringUtils.split("ab:cd:ef", ":") -> ["ab", "cd", "ef"]
StringUtils.split("ab::ef", ":") -> ["ab", "ef"]
-String join(Object[])
StringUtils.join([null, "", "a", "bc"]) -> "abc"
-String join(Object[], String)
StringUtils.join(["a", "b", "c"], null) -> "abc"
StringUtils.join([null, "", "a", "bc"], ',') -> ",,a,bc"
-Calendar round(Calendar, int)
Calendar cal =
DateUtils.round(Calendar.getInstance(), Calendar.DATE)
-Calendar truncate(Calendar, int)
Calendar cal =
DateUtils.truncate(Calendar.getInstance(), Calendar.DATE)
-Iterator iterator(Calendar, int)
Iterator days =
DateUtils.iterator(Calendar.getInstance(), DateUtils.RANGE_WEEK_SUNDAY)
Modified by MT22(Moriwaki Takashi)
"PukiWiki" 1.3.7 Copyright © 2001,2002,2003 PukiWiki Developers Team. License is GNU/GPL.
Based on "PukiWiki" 1.3 by sng
Powered by PHP 7.4.33
HTML convert time to 0.005 sec.