Interface ReferenceSetField

All Superinterfaces:
CustomField

public interface ReferenceSetField extends CustomField

A field with a reference set value.


Example to create an instance using the builder pattern

     ReferenceSetField referenceSetField = ReferenceSetField.builder()
             .plusValue(valueBuilder -> valueBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getValue

      @NotNull @Valid @NotNull @Valid List<KeyReference> getValue()
      Returns:
      value
    • setValue

      void setValue(KeyReference... value)
      set value
      Parameters:
      value - values to be set
    • setValue

      void setValue(List<KeyReference> value)
      set value
      Parameters:
      value - values to be set
    • of

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

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

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

      static ReferenceSetFieldBuilder builder()
      builder factory method for ReferenceSetField
      Returns:
      builder
    • builder

      static ReferenceSetFieldBuilder builder(ReferenceSetField template)
      create builder for ReferenceSetField instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withReferenceSetField

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