Interface PaymentInfo
public interface PaymentInfo
PaymentInfo
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentInfo paymentInfo = PaymentInfo.builder()
.plusPayments(paymentsBuilder -> paymentsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic PaymentInfoBuilder
builder()
builder factory method for PaymentInfostatic PaymentInfoBuilder
builder
(PaymentInfo template) create builder for PaymentInfo instancestatic PaymentInfo
deepCopy
(PaymentInfo template) factory method to create a deep copy of PaymentInfostatic PaymentInfo
of()
factory methodstatic PaymentInfo
of
(PaymentInfo template) factory method to create a shallow copy PaymentInfovoid
setPayments
(Reference... payments) set paymentsvoid
setPayments
(List<Reference> payments) set paymentsstatic com.fasterxml.jackson.core.type.TypeReference<PaymentInfo>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withPaymentInfo
(Function<PaymentInfo, T> helper) accessor map function
-
Method Details
-
getPayments
- Returns:
- payments
-
setPayments
set payments- Parameters:
payments
- values to be set
-
setPayments
set payments- Parameters:
payments
- values to be set
-
of
factory method- Returns:
- instance of PaymentInfo
-
of
factory method to create a shallow copy PaymentInfo- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of PaymentInfo- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentInfo- Returns:
- builder
-
builder
create builder for PaymentInfo instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentInfo
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
-