@SuppressWarnings("rawtypes")
    protected boolean isEmptyValue(final T obj, final Configuration config) {
        if(obj == null) {
            return true;
        }

        if(obj instanceof String) {
            return ((String)obj).isEmpty();
        }

        if(char.class.isAssignableFrom(obj.getClass()) || obj instanceof Character) {
            return ((Character)obj) == '\u0000';
        }

        if(obj.getClass().isArray()) {
            return ((Object[])obj).length == 0;
        }

        if(obj instanceof Collection) {
            return ((Collection)obj).isEmpty();
        }

        if(obj instanceof Map) {
            return ((Map)obj).isEmpty();
        }

        return false;
    }
@ SuppressWarnings ( "rawtypes" ) protected boolean isEmptyValue ( final T obj , final Configuration config ) { if ( obj == null ) { return true ; } if ( obj instanceof String ) { return ( ( String ) obj ) . isEmpty ( ) ; } if ( char . class . isAssignableFrom ( obj . getClass ( ) ) || obj instanceof Character ) { return ( ( Character ) obj ) == '' ; } if ( obj . getClass ( ) . isArray ( ) ) { return ( ( Object [ ] ) obj ) . length == 0 ; } if ( obj instanceof Collection ) { return ( ( Collection ) obj ) . isEmpty ( ) ; } if ( obj instanceof Map ) { return ( ( Map ) obj ) . isEmpty ( ) ; } return false ; }
オブジェクトの値を空と判定する
@param obj 判定対象の値
@param config システム情報
@return trueの場合、空と判定する。