Class InnerClass.Builder

All Implemented Interfaces:
Builder<InnerClass.Builder,InnerClass>, Supplier<InnerClass>
Enclosing class:
InnerClass

public static final class InnerClass.Builder extends ClassBase.Builder<InnerClass.Builder,InnerClass>
Fluent API builder for InnerClass.
  • Method Details

    • build

      public InnerClass build()
      Description copied from interface: Builder
      Build the instance from this builder.
      Returns:
      instance of the built type
    • isStatic

      public InnerClass.Builder isStatic(boolean isStatic)
    • description

      public InnerClass.Builder description(String description)
    • description

      public InnerClass.Builder description(List<String> description)
    • addDescriptionLine

      public InnerClass.Builder addDescriptionLine(String line)
    • addAnnotation

      public InnerClass.Builder addAnnotation(Annotation annotation)
      Add new annotation to the component.
      Parameters:
      annotation - annotation instance
      Returns:
      updated builder instance
    • addAnnotation

      public InnerClass.Builder addAnnotation(Consumer<Annotation.Builder> consumer)
      Add new annotation to the component.
      Parameters:
      consumer - annotation builder consumer
      Returns:
      updated builder instance
    • addAnnotation

      public InnerClass.Builder addAnnotation(Annotation.Builder builder)
      Add new annotation to the component.
      Parameters:
      builder - annotation builder
      Returns:
      updated builder instance
    • addAnnotation

      public InnerClass.Builder addAnnotation(Annotation annotation)
      Add new annotation to the component.
      Parameters:
      annotation - annotation instance
      Returns:
      updated builder instance
    • name

      public InnerClass.Builder name(String name)
    • includeImport

      public InnerClass.Builder includeImport(boolean includeImport)
      Whether to include import type information among the imports.
      Parameters:
      includeImport - whether imports should be included
      Returns:
      updated builder instance