public MethodFilter build ( ) { if ( filters . isEmpty ( ) ) { throw new IllegalStateException ( "No filter specified." ) ; } if ( filters . size ( ) == 1 ) { return filters . get ( 0 ) ; } MethodFilter [ ] methodFilters = new MethodFilter [ filters . size ( ) ] ; filters . toArray ( methodFilters ) ; return new MethodFilterList ( methodFilters ) ; }
Returns the MethodFilter built .