Interface ConfigFunction<S extends TypeScope,R>

Type Parameters:
S - type of scope/type representation the configuration applies to
R - type of the configuration result
All Superinterfaces:
StatefulConfig
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ConfigFunction<S extends TypeScope,R> extends StatefulConfig
Functional interface for realising one of various configurations.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(S target)
    Applies this function to the given arguments.

    Methods inherited from interface com.github.victools.jsonschema.generator.StatefulConfig

    resetAfterSchemaGenerationFinished
  • Method Details

    • apply

      R apply(S target)
      Applies this function to the given arguments.
      Parameters:
      target - the targeted type representation the configuration applies to
      Returns:
      the function result (may be null to indicate no specific configuration applies)