Interface TypeUsage.Enhancer

  • Enclosing interface:
    TypeUsage

    @API(status=EXPERIMENTAL,
         since="1.6.0")
    public static interface TypeUsage.Enhancer
    Enhancers can manipulate the perceived type of parameters. They must be registered through Java Service Registration.

    Currently used in Kotlin module to add nullability information.

    • Method Detail

      • forParameter

        default TypeUsage forParameter​(TypeUsage original,
                                       java.lang.reflect.Parameter parameter)