public static final boolean isTypeCompatible(Object object, Class c) {
    """
	Tells whether the given object is compatible with the given class ---that is, whether the
	given object can be passed as an argument to a method or constructor whose parameter type is
	the given class. If object is null this will return true because null is compatible with any
	type.
    """
        if (object == null)
            return true;
        ArgsCompatbilityReport report = new ArgsCompatbilityReport(0, new boolean[1]);
        if (!isTypeCompatible(getArgClass(object), c, 0, report))
            return false;
        if (report.conversionNeeded[0])
            return false; // we don't allow conversions during this path...
        return true;
    }
public static final boolean isTypeCompatible(Object object, Class c) {
        if (object == null)
            return true;
        ArgsCompatbilityReport report = new ArgsCompatbilityReport(0, new boolean[1]);
        if (!isTypeCompatible(getArgClass(object), c, 0, report))
            return false;
        if (report.conversionNeeded[0])
            return false; // we don't allow conversions during this path...
        return true;
    }
public static final boolean isTypeCompatible ( Object object , Class c ) { if ( object == null ) return true ; ArgsCompatbilityReport report = new ArgsCompatbilityReport ( 0 , new boolean [ 1 ] ) ; if ( ! isTypeCompatible ( getArgClass ( object ) , c , 0 , report ) ) return false ; if ( report . conversionNeeded [ 0 ] ) return false ; // we don't allow conversions during this path... return true ; }
Tells whether the given object is compatible with the given class ---that is, whether the
given object can be passed as an argument to a method or constructor whose parameter type is
the given class. If object is null this will return true because null is compatible with any
type.
Tells whether the given object is compatible with the given class --- that is whether the given object can be passed as an argument to a method or constructor whose parameter type is the given class . If object is null this will return true because null is compatible with any type .