Class JumpToDefault
- java.lang.Object
-
- com.opengamma.strata.pricer.credit.JumpToDefault
-
- All Implemented Interfaces:
FxConvertible<JumpToDefault>
,Serializable
,org.joda.beans.Bean
,org.joda.beans.ImmutableBean
public final class JumpToDefault extends Object implements FxConvertible<JumpToDefault>, org.joda.beans.ImmutableBean, Serializable
The result of calculating Jump-To-Default.The result is an array of currency amounts, all with the same currency, keyed by the legal entity
StandardId
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JumpToDefault.Meta
The meta-bean forJumpToDefault
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JumpToDefault
convertedTo(Currency resultCurrency, FxRateProvider rateProvider)
Converts this instance to an equivalent amount in the specified currency.boolean
equals(Object obj)
ImmutableMap<StandardId,Double>
getAmounts()
Gets the amounts, identified by legal entity ID.Currency
getCurrency()
Gets the currency of the amounts.int
hashCode()
static JumpToDefault.Meta
meta()
The meta-bean forJumpToDefault
.JumpToDefault.Meta
metaBean()
static JumpToDefault
of(Currency currency, Map<StandardId,Double> splitValues)
Obtains an instance from currency and map.String
toString()
-
-
-
Method Detail
-
of
public static JumpToDefault of(Currency currency, Map<StandardId,Double> splitValues)
Obtains an instance from currency and map.- Parameters:
currency
- the currency of the valuessplitValues
- the split values- Returns:
- the instance
-
convertedTo
public JumpToDefault convertedTo(Currency resultCurrency, FxRateProvider rateProvider)
Description copied from interface:FxConvertible
Converts this instance to an equivalent amount in the specified currency.The result, which may be of a different type, will be expressed in terms of the given currency. Any FX conversion that is required will use rates from the provider.
- Specified by:
convertedTo
in interfaceFxConvertible<JumpToDefault>
- Parameters:
resultCurrency
- the currency of the resultrateProvider
- the provider of FX rates- Returns:
- the converted instance, which should be expressed in the specified currency
-
meta
public static JumpToDefault.Meta meta()
The meta-bean forJumpToDefault
.- Returns:
- the meta-bean, not null
-
metaBean
public JumpToDefault.Meta metaBean()
- Specified by:
metaBean
in interfaceorg.joda.beans.Bean
-
getCurrency
public Currency getCurrency()
Gets the currency of the amounts.- Returns:
- the value of the property, not null
-
getAmounts
public ImmutableMap<StandardId,Double> getAmounts()
Gets the amounts, identified by legal entity ID.- Returns:
- the value of the property, not null
-
-