Interface CustomerLabel

All Superinterfaces:
Label

public interface CustomerLabel extends Label
CustomerLabel
Example to create an instance using the builder pattern

     CustomerLabel customerLabel = CustomerLabel.builder()
             .firstName("{firstName}")
             .lastName("{lastName}")
             .customerNumber("{customerNumber}")
             .build()
 
  • Field Details

  • Method Details

    • getType

      @NotNull @NotNull String getType()
      Specified by:
      getType in interface Label
      Returns:
      type
    • getFirstName

      @NotNull @NotNull String getFirstName()

      Given name (first name) of the Customer.

      Returns:
      firstName
    • getLastName

      @NotNull @NotNull String getLastName()

      Family name (last name) of the Customer.

      Returns:
      lastName
    • getCustomerNumber

      @NotNull @NotNull String getCustomerNumber()

      User-defined unique identifier of the Customer.

      Returns:
      customerNumber
    • setFirstName

      void setFirstName(String firstName)

      Given name (first name) of the Customer.

      Parameters:
      firstName - value to be set
    • setLastName

      void setLastName(String lastName)

      Family name (last name) of the Customer.

      Parameters:
      lastName - value to be set
    • setCustomerNumber

      void setCustomerNumber(String customerNumber)

      User-defined unique identifier of the Customer.

      Parameters:
      customerNumber - value to be set
    • of

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

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

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

      static CustomerLabelBuilder builder()
      builder factory method for CustomerLabel
      Returns:
      builder
    • builder

      static CustomerLabelBuilder builder(CustomerLabel template)
      create builder for CustomerLabel instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCustomerLabel

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