Interface PatternComponent


public interface PatternComponent
PatternComponent
Example to create an instance using the builder pattern

     PatternComponent patternComponent = PatternComponent.builder()
             .type("{type}")
             .build()
 
  • Method Details

    • getType

      @NotNull @NotNull String getType()
      Returns:
      type
    • setType

      void setType(String type)
      set type
      Parameters:
      type - value to be set
    • of

      static PatternComponent of()
      factory method
      Returns:
      instance of PatternComponent
    • of

      static PatternComponent of(PatternComponent template)
      factory method to create a shallow copy PatternComponent
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of PatternComponent
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static PatternComponentBuilder builder()
      builder factory method for PatternComponent
      Returns:
      builder
    • builder

      static PatternComponentBuilder builder(PatternComponent template)
      create builder for PatternComponent instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withPatternComponent

      default <T> T withPatternComponent(Function<PatternComponent,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<PatternComponent> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference