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())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FxSingleBarrierOptionMethod valueOf​(java.lang.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.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • of

        public static FxSingleBarrierOptionMethod of​(java.lang.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.

        Parameters:
        name - the name to parse
        Returns:
        the type
        Throws:
        java.lang.IllegalArgumentException - if the name is not known
      • filter

        public java.util.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
        Parameters:
        target - the calculation target, such as a trade
        measure - the measure to be calculated
        Returns:
        the parameter appropriate to the target and measure, empty if this parameter does not apply
      • toString

        public java.lang.String toString()
        Returns the formatted name of the type.
        Overrides:
        toString in class java.lang.Enum<FxSingleBarrierOptionMethod>
        Returns:
        the formatted string representing the type