public static MethodHandle findNewBuilderMethod ( Class < ? > clazz ) { MethodHandle mh = null ; for ( String methodName : NEW_BUILDER_METHOD_NAMES ) { mh = IntrospectionUtils . findStaticMethod ( clazz , methodName , Object . class ) ; if ( mh != null ) { break ; } } return mh ; }
Finds and returns a method handle for new instance of a Builder class .