PlannedSettlementTotals.java
package com.tradecloud.domain.settlement;
import com.tradecloud.domain.common.Currency;
import org.apache.commons.lang.builder.ToStringBuilder;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* Holder for planned settlement bottom-line values.
*/
public class PlannedSettlementTotals implements Serializable {
private Currency supplyCurrency;
private BigDecimal totalSupplyValue;
private Currency costingCurrency;
private BigDecimal totalCostingValue;
private BigDecimal weightedAverageSpot;
private BigDecimal weightedAverageForward;
public Currency getSupplyCurrency() {
return supplyCurrency;
}
public void setSupplyCurrency(Currency supplyCurrency) {
this.supplyCurrency = supplyCurrency;
}
public BigDecimal getTotalSupplyValue() {
return totalSupplyValue;
}
public void setTotalSupplyValue(BigDecimal totalSupplyValue) {
this.totalSupplyValue = totalSupplyValue;
}
public Currency getCostingCurrency() {
return costingCurrency;
}
public void setCostingCurrency(Currency costingCurrency) {
this.costingCurrency = costingCurrency;
}
public BigDecimal getTotalCostingValue() {
return totalCostingValue;
}
public void setTotalCostingValue(BigDecimal totalCostingValue) {
this.totalCostingValue = totalCostingValue;
}
public BigDecimal getWeightedAverageSpot() {
return weightedAverageSpot;
}
public void setWeightedAverageSpot(BigDecimal weightedAverageSpot) {
this.weightedAverageSpot = weightedAverageSpot;
}
public BigDecimal getWeightedAverageForward() {
return weightedAverageForward;
}
public void setWeightedAverageForward(BigDecimal weightedAverageForward) {
this.weightedAverageForward = weightedAverageForward;
}
@Override
public String toString() {
return new ToStringBuilder(this).append(supplyCurrency).append(totalSupplyValue).append(costingCurrency).append(totalCostingValue)
.append(weightedAverageSpot).append(weightedAverageForward).toString();
}
}