Modifier and Type | Field and Description |
---|---|
protected double |
amount |
protected String |
currency |
protected String |
timePeriod |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
T |
amount(double amount) |
Cost |
build() |
T |
currency(String currency) |
T |
fromCost(Cost in) |
protected abstract T |
self() |
T |
timePeriod(String timePeriod) |
protected double amount
protected String currency
protected String timePeriod
protected abstract T self()
public T amount(double amount)
Cost.getAmount()
public T currency(String currency)
Cost.getCurrency()
public T timePeriod(String timePeriod)
Cost.getTimePeriod()
public Cost build()
Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.