public final class SwapLegAmount extends Object implements LegAmount, org.joda.beans.ImmutableBean, Serializable
The amount is supplemented with details which would typically identify the swap leg. These are useful in order to interpret the amount without reference to the full product.
Modifier and Type | Class and Description |
---|---|
static class |
SwapLegAmount.Builder
The bean-builder for
SwapLegAmount . |
static class |
SwapLegAmount.Meta
The meta-bean for
SwapLegAmount . |
Modifier and Type | Method and Description |
---|---|
static SwapLegAmount.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
SwapLegAmount |
convertedTo(Currency resultCurrency,
FxRateProvider rateProvider) |
boolean |
equals(Object obj) |
CurrencyAmount |
getAmount()
Gets the amount associated with the leg.
|
Currency |
getCurrency()
Gets the currency of the leg.
|
PayReceive |
getPayReceive()
Gets whether the leg is pay or receive.
|
SwapLegType |
getType()
Gets the type of the leg, such as Fixed or Ibor.
|
int |
hashCode() |
static SwapLegAmount.Meta |
meta()
The meta-bean for
SwapLegAmount . |
SwapLegAmount.Meta |
metaBean() |
static SwapLegAmount |
of(ResolvedSwapLeg leg,
CurrencyAmount amount)
Obtains an instance from a swap leg and amount.
|
SwapLegAmount.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
public static SwapLegAmount of(ResolvedSwapLeg leg, CurrencyAmount amount)
leg
- the swap legamount
- the amountpublic SwapLegAmount convertedTo(Currency resultCurrency, FxRateProvider rateProvider)
convertedTo
in interface FxConvertible<LegAmount>
public static SwapLegAmount.Meta meta()
SwapLegAmount
.public static SwapLegAmount.Builder builder()
public SwapLegAmount.Meta metaBean()
metaBean
in interface org.joda.beans.Bean
public CurrencyAmount getAmount()
public PayReceive getPayReceive()
public SwapLegType getType()
public Currency getCurrency()
public SwapLegAmount.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.