Class FunctionRequirements

  • All Implemented Interfaces:
    org.joda.beans.Bean, org.joda.beans.ImmutableBean

    public final class FunctionRequirements
    extends java.lang.Object
    implements org.joda.beans.ImmutableBean
    Specifies the market data required for a function to perform a calculation.
    • Method Detail

      • empty

        public static FunctionRequirements empty()
        Returns an empty set of requirements.
        an empty set of requirements
      • combinedWith

        public FunctionRequirements combinedWith​(FunctionRequirements other)
        Combines these requirements with another set.

        The result contains the union of the two sets of requirements.

        other - the other requirements
        the combined requirements
      • meta

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

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

        public ImmutableSet<? extends MarketDataId<?>> getValueRequirements()
        Gets the market data identifiers of the values required for the calculation.
        the value of the property, not null
      • getTimeSeriesRequirements

        public ImmutableSet<ObservableId> getTimeSeriesRequirements()
        Gets the market data identifiers of the time-series of required for the calculation.
        the value of the property, not null
      • getOutputCurrencies

        public ImmutableSet<Currency> getOutputCurrencies()
        Gets the currencies used in the calculation results.

        This cause FX rates to be requested that allow conversion between the currencies specified and the reporting currency. It will be possible to obtain any FX rate pair for these currencies.

        the value of the property, not null
      • getObservableSource

        public ObservableSource getObservableSource()
        Gets the source of market data for FX, quotes and other observable market data.

        This is used to control the source of observable market data. By default, this will be ObservableSource.NONE.

        the value of the property, not null
      • toBuilder

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

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

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

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