Interface OptionSupport

    • Method Detail

      • setOption

        <T> void setOption​(@NotNull
                           Option<T> option,
                           @NotNull
                           T value)
        Set option value, clears value if it is the same as default
        Parameters:
        option - option to set value for
        value - option value
      • getOwnOptions

        @NotNull
        java.util.Collection<Option> getOwnOptions()
        Return options defined in this object, i.e. options for which some value has been set using setOption(Option, Object) method.
        Returns:
        see above
        Since:
        8.1
      • getOptions

        @NotNull
        java.util.Collection<Option> getOptions()
        Returns:
        combined set of options - own and inherited
        Since:
        8.1
      • getChangedOptions

        @NotNull
        Option[] getChangedOptions()
        Return options with changed values, i.e. options with non-default values
        Returns:
        see above
      • getOption

        @NotNull
        <T> T getOption​(@NotNull
                        Option<T> option)
        Get option value
        Parameters:
        option - option to retrieve value for
        Returns:
        value of the option. If value wasn't set, Option:getDefaultValue is returned
      • getOptionDefaultValue

        @NotNull
        <T> T getOptionDefaultValue​(@NotNull
                                    Option<T> option)
        Parameters:
        option - option whose default value to return
        Returns:
        default value for specified option
        Since:
        8.1
      • getDeclaredOption

        @Nullable
        <T> T getDeclaredOption​(Option<T> option)

        Get option value declared in this BuildTypeSettings

        Parameters:
        option - option to retrieve value for
        Returns:
        value of the option. If value wasn't set, null is returned
        Since:
        10.0