public final class Bill extends Object implements SecuritizedProduct, Resolvable<ResolvedBill>, org.joda.beans.ImmutableBean, Serializable
A bill is a financial instrument that represents a unique fixed payment.
| Modifier and Type | Class and Description |
|---|---|
static class |
Bill.Builder
The bean-builder for
Bill. |
static class |
Bill.Meta
The meta-bean for
Bill. |
| Modifier and Type | Method and Description |
|---|---|
static Bill.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
Currency |
getCurrency()
Gets the currency that the security is traded in.
|
DayCount |
getDayCount()
Gets the day count convention applicable.
|
LegalEntityId |
getLegalEntityId()
Gets the legal entity identifier.
|
AdjustablePayment |
getNotional()
Gets the adjustable 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 Bill.Meta |
meta()
The meta-bean for
Bill. |
Bill.Meta |
metaBean() |
double |
priceFromYield(double yield,
LocalDate settlementDate)
Computes the price from the yield at a given settlement date.
|
ResolvedBill |
resolve(ReferenceData refData) |
Bill.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.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitallCurrenciesallPaymentCurrencies, isCrossCurrencypublic Currency getCurrency()
SecuritizedProductgetCurrency in interface SecuritizedProductpublic double priceFromYield(double yield,
LocalDate settlementDate)
yield - the yieldsettlementDate - the settlement datepublic double yieldFromPrice(double price,
LocalDate settlementDate)
price - the pricesettlementDate - the settlement datepublic ResolvedBill resolve(ReferenceData refData)
resolve in interface Resolvable<ResolvedBill>public static Bill.Meta meta()
Bill.public static Bill.Builder builder()
public Bill.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic SecurityId getSecurityId()
This identifier uniquely identifies the security within the system.
getSecurityId in interface SecuritizedProductpublic AdjustablePayment 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 Bill.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.