net.finmath.smartcontract.settlement.SettlementInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finmath-smart-derivative-contract Show documentation
Show all versions of finmath-smart-derivative-contract Show documentation
Project to support the implementation a of smart derivative contract.
package net.finmath.smartcontract.settlement;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlValue;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.math.BigDecimal;
@XmlRootElement(name="settlementInfo")
public class SettlementInfo {
private String key;
private BigDecimal value;
public SettlementInfo() { }
public SettlementInfo(String key, BigDecimal value) {
this.key = key;
this.value = value;
}
@XmlAttribute
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
@XmlValue
@XmlJavaTypeAdapter(BigDecimalAdapter.class)
public BigDecimal getValue() {
return value;
}
public void setValue(BigDecimal value) {
this.value = value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy