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 classJumpToDefault.MetaThe meta-bean forJumpToDefault.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JumpToDefaultconvertedTo(Currency resultCurrency, FxRateProvider rateProvider)Converts this instance to an equivalent amount in the specified currency.booleanequals(Object obj)ImmutableMap<StandardId,Double>getAmounts()Gets the amounts, identified by legal entity ID.CurrencygetCurrency()Gets the currency of the amounts.inthashCode()static JumpToDefault.Metameta()The meta-bean forJumpToDefault.JumpToDefault.MetametaBean()static JumpToDefaultof(Currency currency, Map<StandardId,Double> splitValues)Obtains an instance from currency and map.StringtoString()
-
-
-
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:FxConvertibleConverts 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:
convertedToin 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:
metaBeanin 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
-
-