Class RatesCurveInputs

  • All Implemented Interfaces:
    java.io.Serializable, Bean, ImmutableBean

    public final class RatesCurveInputs
    extends java.lang.Object
    implements ImmutableBean, java.io.Serializable
    The input data used when calibrating a curve.

    This class contains the current market value of a set of instruments used when calibrating a curve.

    See Also:
    Serialized Form
    • Method Detail

      • of

        public static RatesCurveInputs of​(java.util.Map<? extends MarketDataId<?>,​?> marketData,
                                          CurveMetadata metadata)
        Returns a CurveInputs instance containing the specified market data.
        Parameters:
        marketData - a map of market data, keyed by the ID of the data
        metadata - the metadata for the curve
        Returns:
        a CurveInputs instance containing the specified market data
      • meta

        public static RatesCurveInputs.Meta meta()
        The meta-bean for RatesCurveInputs.
        Returns:
        the meta-bean, not null
      • builder

        public static RatesCurveInputs.Builder builder()
        Returns a builder used to create an instance of the bean.
        Returns:
        the builder, not null
      • getMarketData

        public com.google.common.collect.ImmutableMap<? extends MarketDataId<?>,​?> getMarketData()
        Gets the market data.

        There will typically be at least one entry for each node on the curve.

        Returns:
        the value of the property, not null
      • getCurveMetadata

        public CurveMetadata getCurveMetadata()
        Gets the metadata for the curve.

        This is used to identify the curve and the necessary pieces of market data.

        Returns:
        the value of the property, not null
      • toBuilder

        public RatesCurveInputs.Builder toBuilder()
        Returns a builder that allows this bean to be mutated.
        Returns:
        the mutable builder, not null
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object