public final class ResolvedBill extends Object implements ResolvedProduct, org.joda.beans.ImmutableBean, Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
ResolvedBill.Builder
The bean-builder for
ResolvedBill. |
static class |
ResolvedBill.Meta
The meta-bean for
ResolvedBill. |
| Modifier and Type | Method and Description |
|---|---|
static ResolvedBill.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
Currency |
getCurrency()
Returns the currency of the bill.
|
DayCount |
getDayCount()
Gets the day count convention applicable.
|
LegalEntityId |
getLegalEntityId()
Gets the legal entity identifier.
|
Payment |
getNotional()
Gets the notional payment of the bill notional, the amount must be positive.
|
SecurityId |
getSecurityId()
Gets the security identifier.
|
DaysAdjustment |
getSettlementDateOffset()
Gets the number of days between valuation date and settlement date.
|
BillYieldConvention |
getYieldConvention()
Gets yield convention.
|
int |
hashCode() |
static ResolvedBill.Meta |
meta()
The meta-bean for
ResolvedBill. |
ResolvedBill.Meta |
metaBean() |
double |
priceFromYield(double yield,
LocalDate settlementDate)
Computes the price from the yield at a given settlement date.
|
ValueDerivatives |
priceFromYieldAd(double yield,
LocalDate settlementDate)
Computes the price from the yield and its derivative wrt the yield at a given settlement date.
|
ResolvedBill.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
double |
yieldFromPrice(double price,
LocalDate settlementDate)
Computes the yield from the price at a given settlement date.
|
ValueDerivatives |
yieldFromPriceAd(double price,
LocalDate settlementDate)
Computes the yield from the price and its derivative wrt the price at a given settlement date.
|
public Currency getCurrency()
public double priceFromYield(double yield,
LocalDate settlementDate)
yield - the yieldsettlementDate - the settlement datepublic ValueDerivatives priceFromYieldAd(double yield, LocalDate settlementDate)
yield - the yieldsettlementDate - the settlement datepublic double yieldFromPrice(double price,
LocalDate settlementDate)
price - the pricesettlementDate - the settlement datepublic ValueDerivatives yieldFromPriceAd(double price, LocalDate settlementDate)
price - the pricesettlementDate - the settlement datepublic static ResolvedBill.Meta meta()
ResolvedBill.public static ResolvedBill.Builder builder()
public ResolvedBill.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic SecurityId getSecurityId()
This identifier uniquely identifies the security within the system.
public Payment getNotional()
public DayCount getDayCount()
The conversion from dates to a numerical value is made based on this day count.
public BillYieldConvention getYieldConvention()
The convention defines how to convert from yield to price and inversely.
public LegalEntityId getLegalEntityId()
This identifier is used for the legal entity that issues the bill.
public DaysAdjustment getSettlementDateOffset()
It is usually one business day for US and UK bills and two days for Euroland government bills.
public ResolvedBill.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.