keycloak
静的公開メンバ関数 | 非公開メンバ関数 | 全メンバ一覧
org.keycloak.common.util.ObjectUtil クラス
org.keycloak.common.util.ObjectUtil 連携図
Collaboration graph

静的公開メンバ関数

static boolean isEqualOrBothNull (Object str1, Object str2)
 
static String capitalize (String str)
 

非公開メンバ関数

 ObjectUtil ()
 

詳解

著者
Marek Posolda

構築子と解体子

◆ ObjectUtil()

org.keycloak.common.util.ObjectUtil.ObjectUtil ( )
inlineprivate
25 {}

関数詳解

◆ capitalize()

static String org.keycloak.common.util.ObjectUtil.capitalize ( String  str)
inlinestatic
45  {
46  return str.substring(0, 1).toUpperCase() + str.substring(1);
47  }

◆ isEqualOrBothNull()

static boolean org.keycloak.common.util.ObjectUtil.isEqualOrBothNull ( Object  str1,
Object  str2 
)
inlinestatic
引数
str1
str2
戻り値
true if both strings are null or equal
33  {
34  if (str1 == null && str2 == null) {
35  return true;
36  }
37 
38  if ((str1 != null && str2 == null) || (str1 == null && str2 != null)) {
39  return false;
40  }
41 
42  return str1.equals(str2);
43  }

このクラス詳解は次のファイルから抽出されました: