Interface TrackingData
public interface TrackingData
TrackingData
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
TrackingData trackingData = TrackingData.builder()
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic TrackingDataBuilder
builder()
builder factory method for TrackingDatastatic TrackingDataBuilder
builder
(TrackingData template) create builder for TrackingData instancestatic TrackingData
deepCopy
(TrackingData template) factory method to create a deep copy of TrackingDatastatic TrackingData
of()
factory methodstatic TrackingData
of
(TrackingData template) factory method to create a shallow copy TrackingDatavoid
setCarrier
(String carrier) set carriervoid
setIsReturn
(Boolean isReturn) set isReturnvoid
setProvider
(String provider) set providervoid
setProviderTransaction
(String providerTransaction) set providerTransactionvoid
setTrackingId
(String trackingId) set trackingIdstatic com.fasterxml.jackson.core.type.TypeReference<TrackingData>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withTrackingData
(Function<TrackingData, T> helper) accessor map function
-
Method Details
-
getTrackingId
String getTrackingId()- Returns:
- trackingId
-
getCarrier
String getCarrier()- Returns:
- carrier
-
getProvider
String getProvider()- Returns:
- provider
-
getProviderTransaction
String getProviderTransaction()- Returns:
- providerTransaction
-
getIsReturn
Boolean getIsReturn()- Returns:
- isReturn
-
setTrackingId
set trackingId- Parameters:
trackingId
- value to be set
-
setCarrier
set carrier- Parameters:
carrier
- value to be set
-
setProvider
set provider- Parameters:
provider
- value to be set
-
setProviderTransaction
set providerTransaction- Parameters:
providerTransaction
- value to be set
-
setIsReturn
set isReturn- Parameters:
isReturn
- value to be set
-
of
factory method- Returns:
- instance of TrackingData
-
of
factory method to create a shallow copy TrackingData- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of TrackingData- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for TrackingData- Returns:
- builder
-
builder
create builder for TrackingData instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withTrackingData
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-