Enum FxSingleBarrierOptionMethod

    • Method Detail

      • values

        public static FxSingleBarrierOptionMethod[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (FxSingleBarrierOptionMethod c : FxSingleBarrierOptionMethod.values())
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FxSingleBarrierOptionMethod valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • of

        public static FxSingleBarrierOptionMethod of​(String name)
        Obtains an instance from the specified name.

        Parsing handles the mixed case form produced by toString() and the upper and lower case variants of the enum constant name.

        name - the name to parse
        the type
        IllegalArgumentException - if the name is not known
      • filter

        public Optional<CalculationParameter> filter​(CalculationTarget target,
                                                     Measure measure)
        Description copied from interface: CalculationParameter
        Filters this parameter to the specified target and measure.

        Parameters may apply to all targets and measures or just a subset. The CalculationParameters.filter(CalculationTarget, Measure) method uses this method to filter a complete set of parameters.

        By default, this returns Optional.of(this). If the parameter does not apply to either the target or measure, then optional empty must be returned. If desired, the result can be a different parameter, allowing one parameter to delegate to another when filtered.

        Specified by:
        filter in interface CalculationParameter
        target - the calculation target, such as a trade
        measure - the measure to be calculated
        the parameter appropriate to the target and measure, empty if this parameter does not apply