public Constructor < ? > getConstructorForFieldTypeWithSizeHint ( final Type fieldTypeFullyResolved , final ClassFieldCache classFieldCache ) { if ( ! isTypeVariable ) { return constructorForFieldTypeWithSizeHint ; } else { final Class < ? > fieldRawTypeFullyResolved = JSONUtils . getRawType ( fieldTypeFullyResolved ) ; if ( ! Collection . class . isAssignableFrom ( fieldRawTypeFullyResolved ) && ! Map . class . isAssignableFrom ( fieldRawTypeFullyResolved ) ) { // Don't call constructor with size hint if this is not a Collection or Map // (since the constructor could do anything) return null ; } return classFieldCache . getConstructorWithSizeHintForConcreteTypeOf ( fieldRawTypeFullyResolved ) ; } }
Get the constructor with size hint for the field type .