Class FunctionRequirements

  • All Implemented Interfaces:
    Bean, ImmutableBean

    public final class FunctionRequirements
    extends java.lang.Object
    implements 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.
        Returns:
        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.

        Parameters:
        other - the other requirements
        Returns:
        the combined requirements
      • meta

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

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

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

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

        public com.google.common.collect.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.

        Returns:
        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.

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

        public FunctionRequirements.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