public static boolean matchValueByName ( String expectedType , Object actualValue ) { if ( expectedType == null ) return true ; if ( actualValue == null ) throw new NullPointerException ( "Actual value cannot be null" ) ; return matchTypeByName ( expectedType , actualValue . getClass ( ) ) ; }
Matches expected type to a type of a value .