public static ReflectedInfo getFieldInfoByEffectiveName ( List < ReflectedInfo > infoList , String name ) { if ( infoList == null ) { throw new IllegalArgumentException ( "infoList cannot be null." ) ; } if ( StringUtils . isBlank ( name ) ) { throw new IllegalArgumentException ( "name cannot be null or empty." ) ; } ReflectedInfo result = null ; for ( ReflectedInfo info : infoList ) { if ( name . equals ( info . getEffectiveName ( ) ) ) { result = info ; break ; } } return result ; }
Helper method to find the field info by its effective name from the passed in list of info .