Interface SubRate
public interface SubRate
SubRate
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SubRate subRate = SubRate.builder()
.name("{name}")
.amount(0.3)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic SubRateBuilder
builder()
builder factory method for SubRatestatic SubRateBuilder
create builder for SubRate instancestatic SubRate
factory method to create a deep copy of SubRate@NotNull Double
@NotNull String
getName()
static SubRate
of()
factory methodstatic SubRate
factory method to create a shallow copy SubRatevoid
set amountvoid
set namestatic com.fasterxml.jackson.core.type.TypeReference<SubRate>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withSubRate
(Function<SubRate, T> helper) accessor map function
-
Method Details
-
getName
- Returns:
- name
-
getAmount
- Returns:
- amount
-
setName
set name- Parameters:
name
- value to be set
-
setAmount
set amount- Parameters:
amount
- value to be set
-
of
factory method- Returns:
- instance of SubRate
-
of
factory method to create a shallow copy SubRate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of SubRate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for SubRate- Returns:
- builder
-
builder
create builder for SubRate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withSubRate
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
-