Class BuildDependencyImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.dependency.BuildDependencyImpl
-
- All Implemented Interfaces:
Comparable<BuildDependencyEx>,BuildDependency,BuildDependencyEx,DependencyOptions,OptionSupport
public class BuildDependencyImpl extends Object implements BuildDependencyEx
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.serverSide.dependency.DependencyOptions
DependencyOptions.BuildContinuationMode
-
-
Field Summary
-
Fields inherited from interface jetbrains.buildServer.serverSide.dependency.DependencyOptions
RUN_BUILD_IF_DEPENDENCY_FAILED, RUN_BUILD_IF_DEPENDENCY_FAILED_TO_START, RUN_BUILD_ON_THE_SAME_AGENT, SYNCHRONIZE_REVISIONS, TAKE_STARTED_BUILD_WITH_SAME_REVISIONS, TAKE_SUCCESSFUL_BUILDS_ONLY
-
-
Constructor Summary
Constructors Constructor Description BuildDependencyImpl(BuildPromotionEx dependOn, BuildPromotionEx dependent, OptionSupport options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(BuildDependencyEx o)static DependencyOptionscopyOptions(OptionSupport optionSupport)booleanequals(Object o)Option[]getChangedOptions()Return options with changed values, i.e.<T> TgetDeclaredOption(Option<T> option)Get option value declared in this BuildTypeSettingsBuildPromotionExgetDependent()Return a Build Promotion which has this dependencyBuildPromotionExgetDependOn()Return a Build Promotion object we depend on<T> TgetOption(Option<T> option)Get option value<T> TgetOptionDefaultValue(Option<T> option)Collection<Option>getOptions()intgetOptionsMask()Collection<Option>getOwnOptions()Return options defined in this object, i.e.inthashCode()static DependencyOptionsmaskToOptions(int optionsMask)<T> voidsetOption(Option<T> option, T value)Set option value, clears value if it is the same as defaultStringtoString()
-
-
-
Constructor Detail
-
BuildDependencyImpl
public BuildDependencyImpl(@NotNull BuildPromotionEx dependOn, @NotNull BuildPromotionEx dependent, @NotNull OptionSupport options) throws IllegalArgumentException- Throws:
IllegalArgumentException
-
-
Method Detail
-
getDependent
@NotNull public BuildPromotionEx getDependent()
Description copied from interface:BuildDependencyReturn a Build Promotion which has this dependency- Specified by:
getDependentin interfaceBuildDependency- Specified by:
getDependentin interfaceBuildDependencyEx- Returns:
- see above
-
getDependOn
@NotNull public BuildPromotionEx getDependOn()
Description copied from interface:BuildDependencyReturn a Build Promotion object we depend on- Specified by:
getDependOnin interfaceBuildDependency- Specified by:
getDependOnin interfaceBuildDependencyEx- Returns:
- see above
-
getOptionsMask
public int getOptionsMask()
- Specified by:
getOptionsMaskin interfaceBuildDependencyEx
-
compareTo
public int compareTo(BuildDependencyEx o)
- Specified by:
compareToin interfaceComparable<BuildDependencyEx>
-
setOption
public <T> void setOption(@NotNull Option<T> option, @NotNull T value)Description copied from interface:OptionSupportSet option value, clears value if it is the same as default- Specified by:
setOptionin interfaceOptionSupport- Parameters:
option- option to set value forvalue- option value
-
getOwnOptions
@NotNull public Collection<Option> getOwnOptions()
Description copied from interface:OptionSupportReturn options defined in this object, i.e. options for which some value has been set usingOptionSupport.setOption(Option, Object)method.- Specified by:
getOwnOptionsin interfaceOptionSupport- Returns:
- see above
-
getOptions
@NotNull public Collection<Option> getOptions()
- Specified by:
getOptionsin interfaceOptionSupport- Returns:
- combined set of options - own and inherited
-
getChangedOptions
@NotNull public Option[] getChangedOptions()
Description copied from interface:OptionSupportReturn options with changed values, i.e. options with non-default values- Specified by:
getChangedOptionsin interfaceOptionSupport- Returns:
- see above
-
getOption
@NotNull public <T> T getOption(@NotNull Option<T> option)Description copied from interface:OptionSupportGet option value- Specified by:
getOptionin interfaceOptionSupport- Parameters:
option- option to retrieve value for- Returns:
- value of the option. If value wasn't set, Option:getDefaultValue is returned
-
getOptionDefaultValue
@NotNull public <T> T getOptionDefaultValue(@NotNull Option<T> option)- Specified by:
getOptionDefaultValuein interfaceOptionSupport- Parameters:
option- option whose default value to return- Returns:
- default value for specified option
-
getDeclaredOption
@Nullable public <T> T getDeclaredOption(Option<T> option)
Description copied from interface:OptionSupportGet option value declared in this BuildTypeSettings
- Specified by:
getDeclaredOptionin interfaceOptionSupport- Parameters:
option- option to retrieve value for- Returns:
- value of the option. If value wasn't set, null is returned
-
maskToOptions
@NotNull public static DependencyOptions maskToOptions(int optionsMask)
-
copyOptions
@NotNull public static DependencyOptions copyOptions(@NotNull OptionSupport optionSupport)
-
-