Class SimpleToolVersion

  • All Implemented Interfaces:
    ToolVersion

    public class SimpleToolVersion
    extends Object
    implements ToolVersion
    Since:
    10.0
    Author:
    Evgeniy.Koshkin
    • 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
      • SimpleToolVersion

        public SimpleToolVersion​(@NotNull
                                 ToolType toolType,
                                 @NotNull
                                 String version,
                                 @NotNull
                                 String id,
                                 @NotNull
                                 String originalId,
                                 @NotNull
                                 String displayName,
                                 boolean isBundled,
                                 @Nullable
                                 Long requiredFreeDiskSpaceHint)
        Since:
        2024.03
    • Method Detail

      • 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 interface ToolVersion
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object