Interface CartKeyReference

All Superinterfaces:
KeyReference

public interface CartKeyReference extends KeyReference

References a cart by key.


Example to create an instance using the builder pattern

     CartKeyReference cartKeyReference = CartKeyReference.builder()
             .key("{key}")
             .build()
 
  • Field Details

  • Method Details

    • of

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

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

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

      static CartKeyReferenceBuilder builder()
      builder factory method for CartKeyReference
      Returns:
      builder
    • builder

      static CartKeyReferenceBuilder builder(CartKeyReference template)
      create builder for CartKeyReference instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCartKeyReference

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