Interface FieldContainer


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

     FieldContainer fieldContainer = FieldContainer.builder()
             .build()
 
  • Method Details

    • values

      @NotNull @NotNull Map<String,Object> values()

      JSON object with keys matching the names of Custom Fields (that is, names in the FieldDefinitions) and values given by CustomFieldValue.

      Returns:
      map of the pattern property values
    • setValue

      void setValue(String key, Object value)

      JSON object with keys matching the names of Custom Fields (that is, names in the FieldDefinitions) and values given by CustomFieldValue.

      Parameters:
      key - property name
      value - property value
    • of

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

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

      @Nullable static FieldContainer deepCopy(@Nullable FieldContainer template)
      factory method to create a deep copy of FieldContainer
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static FieldContainerBuilder builder()
      builder factory method for FieldContainer
      Returns:
      builder
    • builder

      static FieldContainerBuilder builder(FieldContainer template)
      create builder for FieldContainer instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withFieldContainer

      default <T> T withFieldContainer(Function<FieldContainer,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<FieldContainer> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference