Interface DynamicType.Builder.ModuleDefinition.RequiresDefinition<U>

Type Parameters:
U - A loaded type that the built type is guaranteed to be a subclass of.
All Superinterfaces:
DynamicType.Builder<U>, DynamicType.Builder.ModuleDefinition<U>
All Known Implementing Classes:
DynamicType.Builder.AbstractBase.Adapter.ModuleDefinitionAdapter.RequiresDefinitionAdapter, DynamicType.Builder.ModuleDefinition.RequiresDefinition.Delegator
Enclosing interface:
DynamicType.Builder.ModuleDefinition<S>

public static interface DynamicType.Builder.ModuleDefinition.RequiresDefinition<U> extends DynamicType.Builder.ModuleDefinition<U>
A specification of a module requirement.
  • Method Details

    • requiredVersion

      Specifies the version of the required module.
      Parameters:
      version - The version of the required module or null if no version is to be specified.
      Returns:
      A new builder that is equal to this builder but with the given version specification.