public static boolean isODataEntityCollectionType ( Class < ? > type , Type genericType ) { if ( ListResult . class != type ) { return false ; } ParameterizedType pt = ( ParameterizedType ) genericType ; if ( pt . getActualTypeArguments ( ) . length != 1 ) { return false ; } Class < ? > typeClass = getCollectedType ( genericType ) ; return isODataEntityType ( typeClass ) ; }
Is the given type a collection of ODataEntity