public boolean hasDefaultConstructor ( ) { if ( ! delegate . isPresent ( ) ) { return false ; } final Constructor < ? > [ ] constructors = delegateClass ( ) . getConstructors ( ) ; for ( final Constructor < ? > constructor : constructors ) { if ( constructor . getParameterTypes ( ) . length == 0 ) { return true ; } } return false ; }
Determines whether the delegate has a default constructor