Class PerturbationMapping.Builder<T>

  • Type Parameters:
    T - the type
    All Implemented Interfaces:
    org.joda.beans.BeanBuilder<PerturbationMapping<T>>
    Enclosing class:
    PerturbationMapping<T>

    public static final class PerturbationMapping.Builder<T>
    extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<PerturbationMapping<T>>
    The bean-builder for PerturbationMapping.
    • Method Detail

      • get

        public Object get​(String propertyName)
        Specified by:
        get in interface org.joda.beans.BeanBuilder<T>
        Overrides:
        get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<PerturbationMapping<T>>
      • marketDataType

        public PerturbationMapping.Builder<T> marketDataType​(Class<T> marketDataType)
        Sets the type of market data handled by this mapping.
        Parameters:
        marketDataType - the new value, not null
        Returns:
        this, for chaining, not null
      • filter

        public PerturbationMapping.Builder<T> filter​(MarketDataFilter<? extends T,​?> filter)
        Sets the filter that decides whether the perturbation should be applied to a piece of market data.
        Parameters:
        filter - the new value, not null
        Returns:
        this, for chaining, not null
      • perturbation

        public PerturbationMapping.Builder<T> perturbation​(ScenarioPerturbation<T> perturbation)
        Sets perturbation that should be applied to market data as part of a scenario.
        Parameters:
        perturbation - the new value, not null
        Returns:
        this, for chaining, not null
      • toString

        public String toString()
        Overrides:
        toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<PerturbationMapping<T>>