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 boolean
equals(Object o)
String
getDisplayName()
String
getId()
String
getOriginalId()
Long
getRequiredFreeDiskSpaceHint()
Returns an approximate amount of free disk space in bytes required to install this tool version.ToolType
getType()
String
getVersion()
int
hashCode()
boolean
isBundled()
String
toString()
-
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:
getType
in interfaceToolVersion
-
getVersion
@NotNull public String getVersion()
- Specified by:
getVersion
in interfaceToolVersion
-
getId
@NotNull public String getId()
- Specified by:
getId
in interfaceToolVersion
-
getOriginalId
@NotNull public String getOriginalId()
- Specified by:
getOriginalId
in interfaceToolVersion
-
getDisplayName
@NotNull public String getDisplayName()
- Specified by:
getDisplayName
in interfaceToolVersion
-
isBundled
public boolean isBundled()
- Specified by:
isBundled
in interfaceToolVersion
-
getRequiredFreeDiskSpaceHint
@Nullable public Long getRequiredFreeDiskSpaceHint()
Description copied from interface:ToolVersion
Returns 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:
getRequiredFreeDiskSpaceHint
in interfaceToolVersion
-
-