Package jetbrains.buildServer.tools
Class SimpleToolVersion
- java.lang.Object
-
- jetbrains.buildServer.tools.SimpleToolVersion
-
- All Implemented Interfaces:
ToolVersion
public class SimpleToolVersion extends Object implements ToolVersion
- Since:
- 10.0
- Author:
- Evgeniy.Koshkin
-
-
Constructor Summary
Constructors Constructor Description SimpleToolVersion(ToolType toolType, String versionString, String toolId)SimpleToolVersion(ToolType toolType, String versionString, String toolId, boolean isBundled)SimpleToolVersion(ToolType toolType, String version, String id, String displayName)SimpleToolVersion(ToolType toolType, String version, String id, String displayName, boolean isBundled)SimpleToolVersion(ToolType toolType, String version, String id, String originalId, String displayName, boolean isBundled)SimpleToolVersion(ToolType toolType, String version, String id, String originalId, String displayName, boolean isBundled, Long requiredFreeDiskSpaceHint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetDisplayName()StringgetId()StringgetOriginalId()LonggetRequiredFreeDiskSpaceHint()Returns an approximate amount of free disk space in bytes required to install this tool version.ToolTypegetType()StringgetVersion()inthashCode()booleanisBundled()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.tools.ToolVersion
getInstallationMode
-
-
-
-
Constructor Detail
-
SimpleToolVersion
public SimpleToolVersion(@NotNull ToolType toolType, @NotNull String versionString, @NotNull String toolId)
-
SimpleToolVersion
public SimpleToolVersion(@NotNull ToolType toolType, @NotNull String versionString, @NotNull String toolId, boolean isBundled)- Since:
- 2023.11
-
SimpleToolVersion
public SimpleToolVersion(@NotNull ToolType toolType, @NotNull String version, @NotNull String id, @NotNull String displayName)- Since:
- 2017.1
-
SimpleToolVersion
public SimpleToolVersion(@NotNull ToolType toolType, @NotNull String version, @NotNull String id, @NotNull String displayName, boolean isBundled)- Since:
- 2023.11
-
SimpleToolVersion
public SimpleToolVersion(@NotNull ToolType toolType, @NotNull String version, @NotNull String id, @NotNull String originalId, @NotNull String displayName, boolean isBundled)- Since:
- 2023.11
-
-
Method Detail
-
getType
@NotNull public ToolType getType()
- Specified by:
getTypein interfaceToolVersion
-
getVersion
@NotNull public String getVersion()
- Specified by:
getVersionin interfaceToolVersion
-
getId
@NotNull public String getId()
- Specified by:
getIdin interfaceToolVersion
-
getOriginalId
@NotNull public String getOriginalId()
- Specified by:
getOriginalIdin interfaceToolVersion
-
getDisplayName
@NotNull public String getDisplayName()
- Specified by:
getDisplayNamein interfaceToolVersion
-
isBundled
public boolean isBundled()
- Specified by:
isBundledin interfaceToolVersion
-
getRequiredFreeDiskSpaceHint
@Nullable public Long getRequiredFreeDiskSpaceHint()
Description copied from interface:ToolVersionReturns an approximate amount of free disk space in bytes required to install this tool version. It is recommended to round the value up, e.g. if it's required to have ~4.5 GB, it's better to return a bigger value, e.g. 5 GB.The implementation of this method is optional but recommended for downloadable bundled tool versions.
- Specified by:
getRequiredFreeDiskSpaceHintin interfaceToolVersion
-
-