Package jetbrains.buildServer.configs
Class FeatureBuilderImpl
- java.lang.Object
-
- jetbrains.buildServer.configs.FeatureBuilderImpl
-
- All Implemented Interfaces:
Comparable<FeatureBuilderImpl>,FeatureBuilder,HighlightedItem
- Direct Known Subclasses:
BuildFeatureBuilderImpl,ProjectFeatureBuilderImpl
public abstract class FeatureBuilderImpl extends Object implements FeatureBuilder, Comparable<FeatureBuilderImpl>, HighlightedItem
-
-
Field Summary
Fields Modifier and Type Field Description protected ParametersmyParametersprotected StringmyType
-
Constructor Summary
Constructors Constructor Description FeatureBuilderImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description FeatureBuilderImpladdParameter(String name, String value)FeatureBuilderImpladdParameters(Map<String,String> parameters)intcompareTo(FeatureBuilderImpl o)booleanequals(FeatureBuilderImpl other, boolean includeId)Returns true if this feature has same type, parameters, and (optionally) id as the specified other featureprotected abstract Map<String,String>getDeafultParams()StringgetId()ParametersgetParameters()StringgetType()inthashCode(boolean includeId)Returns this feature hashCodebooleanisHighlighted()FeatureBuilderImplsetHighlighted(boolean highlighted)FeatureBuilderImplsetId(String id)FeatureBuilderImplsetType(String type)StringtoString()voidwrite(org.jdom.Element parent)
-
-
-
Field Detail
-
myType
protected String myType
-
myParameters
protected final Parameters myParameters
-
-
Method Detail
-
setId
@NotNull public FeatureBuilderImpl setId(@Nullable String id)
- Specified by:
setIdin interfaceFeatureBuilder- Specified by:
setIdin interfaceHighlightedItem
-
getId
@Nullable public String getId()
- Specified by:
getIdin interfaceHighlightedItem
-
isHighlighted
public boolean isHighlighted()
- Specified by:
isHighlightedin interfaceHighlightedItem
-
setHighlighted
public FeatureBuilderImpl setHighlighted(boolean highlighted)
- Specified by:
setHighlightedin interfaceHighlightedItem
-
setType
@NotNull public FeatureBuilderImpl setType(@Nullable String type)
- Specified by:
setTypein interfaceFeatureBuilder
-
getType
@Nullable public String getType()
-
addParameter
@NotNull public FeatureBuilderImpl addParameter(@NotNull String name, @NotNull String value)
- Specified by:
addParameterin interfaceFeatureBuilder
-
addParameters
@NotNull public FeatureBuilderImpl addParameters(@NotNull Map<String,String> parameters)
- Specified by:
addParametersin interfaceFeatureBuilder
-
getParameters
@NotNull public Parameters getParameters()
-
write
public void write(@NotNull org.jdom.Element parent)
-
compareTo
public int compareTo(FeatureBuilderImpl o)
- Specified by:
compareToin interfaceComparable<FeatureBuilderImpl>
-
equals
public boolean equals(@NotNull FeatureBuilderImpl other, boolean includeId)Returns true if this feature has same type, parameters, and (optionally) id as the specified other feature- Parameters:
other- build features to check for equalityincludeId- whether ids should be compared- Returns:
- see above
-
hashCode
public int hashCode(boolean includeId)
Returns this feature hashCode- Parameters:
includeId- whether id should be included in the hashCode- Returns:
- see above
-
-