Interface TrackingData


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

     TrackingData trackingData = TrackingData.builder()
             .trackingId("{trackingId}")
             .carrier("{carrier}")
             .provider("{provider}")
             .providerTransaction("{providerTransaction}")
             .isReturn(true)
             .build()
 
  • Method Details

    • getTrackingId

      @NotNull @NotNull String getTrackingId()

      The ID to track one parcel.

      Returns:
      trackingId
    • getCarrier

      @NotNull @NotNull String getCarrier()

      The carrier that delivers the parcel.

      Returns:
      carrier
    • getProvider

      @NotNull @NotNull String getProvider()
      Returns:
      provider
    • getProviderTransaction

      @NotNull @NotNull String getProviderTransaction()
      Returns:
      providerTransaction
    • getIsReturn

      @NotNull @NotNull Boolean getIsReturn()

      Flag to distinguish if the parcel is on the way to the customer (false) or on the way back (true).

      Returns:
      isReturn
    • setTrackingId

      void setTrackingId(String trackingId)

      The ID to track one parcel.

      Parameters:
      trackingId - value to be set
    • setCarrier

      void setCarrier(String carrier)

      The carrier that delivers the parcel.

      Parameters:
      carrier - value to be set
    • setProvider

      void setProvider(String provider)
      set provider
      Parameters:
      provider - value to be set
    • setProviderTransaction

      void setProviderTransaction(String providerTransaction)
      set providerTransaction
      Parameters:
      providerTransaction - value to be set
    • setIsReturn

      void setIsReturn(Boolean isReturn)

      Flag to distinguish if the parcel is on the way to the customer (false) or on the way back (true).

      Parameters:
      isReturn - value to be set
    • of

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

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

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

      static TrackingDataBuilder builder()
      builder factory method for TrackingData
      Returns:
      builder
    • builder

      static TrackingDataBuilder builder(TrackingData template)
      create builder for TrackingData instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withTrackingData

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