Interface StoreCountry


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

     StoreCountry storeCountry = StoreCountry.builder()
             .code("{code}")
             .build()
 
  • Method Details

    • getCode

      @NotNull @NotNull String getCode()

      Two-digit country code as per ISO 3166-1 alpha-2.

      Returns:
      code
    • setCode

      void setCode(String code)

      Two-digit country code as per ISO 3166-1 alpha-2.

      Parameters:
      code - value to be set
    • of

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

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

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

      static StoreCountryBuilder builder()
      builder factory method for StoreCountry
      Returns:
      builder
    • builder

      static StoreCountryBuilder builder(StoreCountry template)
      create builder for StoreCountry instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withStoreCountry

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