モジュール pro.eng.yui.YuiFramework

インタフェース IObjectUtil


public interface IObjectUtil
Define common Object operations
導入されたバージョン:
1.0.0
バージョン:
1.0.0
作成者:
yui-KITAMURA
  • メソッドの概要

    修飾子とタイプ
    メソッド
    説明
    boolean
    equals(Object first, Object second)
    null-safe equality test.
    boolean
    Check the object is NOT null
    boolean
    Check the object is null
    boolean
    isTypeOf(Object instance, Class superClz)
    check the instance is extends or implements the class
  • メソッドの詳細

    • isNull

      boolean isNull(Object obj)
      Check the object is null
      パラメータ:
      obj - check target instance or null value
      戻り値:
      if the object is null then true
    • isNotNull

      boolean isNotNull(Object obj)
      Check the object is NOT null
      パラメータ:
      obj - check target instance or null value
      戻り値:
      if the object is NOT null then true
    • equals

      boolean equals(Object first, Object second)
      null-safe equality test. Almost same as first.equals(second), but safe to null.
      • null,null then true
      • null,NOT-null then false
      • NOT-null,null then false
      • NOT-null,NOT-null then same to Object.equals(Object)
      パラメータ:
      first - first object
      second - second object
      戻り値:
      almost same to Object.equals(Object). See the document body
    • isTypeOf

      boolean isTypeOf(Object instance, Class superClz)
      check the instance is extends or implements the class
      パラメータ:
      instance - instance that to be checked
      superClz - expected super class or interface
      戻り値:
      if the instance are the child of superClz then true
      関連項目: