public static boolean isFluxByteBuf ( Type entityType ) { if ( TypeUtil . isTypeOrSubTypeOf ( entityType , Flux . class ) ) { final Type innerType = TypeUtil . getTypeArguments ( entityType ) [ 0 ] ; if ( TypeUtil . isTypeOrSubTypeOf ( innerType , ByteBuf . class ) ) { return true ; } } return false ; }
Checks if a type is Flux&lt ; ByteBuf&gt ; .