三、BooleanUtils
ブールツール
そして、(ブール...配列)ロジックと
BooleanUtils.and(真、真の)= 真 BooleanUtils.and(偽、偽)= 偽 (BooleanUtils.and 真、偽の)= 偽 (BooleanUtils.andを真、真、偽)= 偽 BooleanUtils.and(真、真、真)= 真
比較(ブール値xは、ブールY)は、2つのint型を比較し、xは== yは0 ,! X && yのリターンを返した場合、ブール値を返すこと0未満である、X &&!yは0より大きい戻ります
isFalse(ブールブール値)は偽であり、ブール値を返すかどうか
isTrue(ブールブール値)それが真実であるとブール値を返すかどうか
(ブールブール値)論理否定を否定
BooleanUtils.negate(にBoolean.TRUE)= Boolean.FALSE。 BooleanUtils.negate(Boolean.FALSE) = にBoolean.TRUE。 BooleanUtils.negate(NULL)= NULL ;
または(ブール...配列)または論理
BooleanUtils.or(真、真)= 真 BooleanUtils.or(偽、偽)= 偽 BooleanUtils.or(真、偽)= 真 BooleanUtils.or(真、真、偽)= 真 BooleanUtils.or(真の、真の、真)= 真 BooleanUtils.or(偽、偽、偽)= 偽
返された基本的なオブジェクトタイプ及びデータタイプを変換toBoolean(ブール値ブール値)
BooleanUtils.toBoolean(にBoolean.TRUEは)= 真 BooleanUtils.toBoolean(Boolean.FALSE) = 偽 BooleanUtils.toBoolean(ヌル)= 偽
toBoolean(int値)がint型に変換され、ブール型を返すであろう
BooleanUtils.toBoolean(0)= 偽 BooleanUtils.toBooleanは、( 1)= 真 BooleanUtils.toBooleanは、( 2)= 真
文字列型に変換するtoBoolean(文字列str)とブール型を返します
BooleanUtils.toBoolean(ヌル)= 偽 BooleanUtils.toBoolean( "真")= 真 BooleanUtils.toBoolean( "TRUE")を= 真 BooleanUtils.toBoolean( "真の")= 真 BooleanUtils.toBoolean( "上を")= 真 BooleanUtilsを。 toBoolean( "YES")= 真 BooleanUtils.toBoolean( "偽")を= 偽 BooleanUtils.toBoolean( "X GTIが")= 偽 BooleanUtils.toBooleanObject( "Y")は= 真 BooleanUtils.toBooleanObject( "N")は= 偽 BooleanUtilsを。toBooleanObject( "T")=真 BooleanUtils.toBooleanObject( "F")は= 偽
toInteger(ブール値ブール値)ブールデータ型がINTと戻り型に変換しました
BooleanUtils.toInteger(真の)1 = BooleanUtils.toInteger(偽)= 0
toStringOnOff(ブール値ブール値)ブール型のデータが「オン」の文字列を変換または「オフ」とリターン
BooleanUtils.toStringOnOff(真の "オン")= BooleanUtils.toStringOnOff(偽)= "オフ"
toStringTrueFalse(ブールブール値)ブール型のデータは、「」true「または」false「とリターンの文字列を変換し、
BooleanUtils.toStringTrueFalse(真)= "true"を BooleanUtils.toStringTrueFalse(偽)= "false"に
toStringYesNo(ブールブール値)ブール型のデータを文字列に変換「yes」または「no」とリターン
BooleanUtils.toStringYesNo(真)= "yes"を BooleanUtils.toStringYesNo(偽)= "なし"
XOR(ブール...配列)异或
BooleanUtils.xor(真、真は)= 偽 BooleanUtils.xorを(偽、偽)= 偽 (BooleanUtils.xorを真、偽)= 真
四、ClassPathUtils
クラスパスツール
toFullyQualifiedName(クラス<?>コンテキスト、文字列resourceNameを)+ resourceNameのスプライシングされたクラスのパッケージ名から文字列を返します。
ClassPathUtils.toFullyQualifiedName(のStringUtils。クラス、 "StringUtils.properties")= "org.apache.commons.lang3.StringUtils.properties"
toFullyQualifiedName(パッケージのコンテキスト、文字列resourceNameを)+ resourceNameのスプライシングされたクラスのパッケージ名から文字列を返します。
ClassPathUtils.toFullyQualifiedName(のStringUtils。クラス .getPackage()、 "StringUtils.properties")= "org.apache.commons.lang3.StringUtils.properties"
toFullyQualifiedPath(クラス<?>コンテキスト、文字列resourceNameを)+ resourceNameのスプライシングされたクラスのパッケージ名から文字列を返します。
ClassPathUtils.toFullyQualifiedPath(のStringUtils。クラス、 "StringUtils.properties")= "ORG / apacheの/コモン/ lang3 / StringUtils.properties"
toFullyQualifiedPath(パッケージのコンテキスト、文字列resourceNameを)+ resourceNameのスプライシングされたクラスのパッケージ名から文字列を返します。
ClassPathUtils.toFullyQualifiedPath(のStringUtils。クラス、 "StringUtils.properties")= "ORG / apacheの/コモン/ lang3 / StringUtils.properties"
五、EnumUtilsの
列挙ツール
クラスを通してgetEnum(クラス<E> enumClass、文字列enumName)が列挙を返し、空で返すことができます
クラスの列挙を返すことによってgetEnumList(クラス<E> enumClass)
列挙クラスによってgetEnumMap(クラス<E> enumClass)は、マップを返します。
isValidEnum(クラス<E> enumClass、文字列enumName)enumName列挙では、真偽を返すかどうかを検証します