JAVA開発メモ
Commons-Lang のバックアップの現在との差分(No.2)
 

[トップ|一覧|単語検索|最終更新|バックアップ|ヘルプ]



  #freeze
  *[[Jakarta Commons Lang:http://jakarta.apache.org/commons/lang/]]

  #contents
  #amazonkey2(jakarta)


  -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"|
  |''stripToEmpty''|""|""|""|"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"



  |''escapeJava''|"ABC"|\"ABC\"|
  |''escapeJavaScript''|"ABC"|\"ABC\"|
  |''escapeHtml''|A&B|A&B|
  |''escapeXml''|A&B|A&B|
  |''escapeSql''|'|''|

  -Calendar round(Calendar, int)


   Calendar cal =
       DateUtils.round(Calendar.getInstance(), Calendar.DATE)
  -Calendar truncate(Calendar, int)


       DateUtils.truncate(Calendar.getInstance(), Calendar.DATE)
  -Iterator iterator(Calendar, int)


   Iterator days =
       DateUtils.iterator(Calendar.getInstance(), DateUtils.RANGE_WEEK_SUNDAY)
   Iterator days =

トップ 一覧 検索 最終更新 バックアップ   ヘルプ   最終更新のRSS

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.004 sec.