public class UpdateStrategyCustomization
extends java.lang.Object
Constructor and Description |
---|
UpdateStrategyCustomization() |
Modifier and Type | Method and Description |
---|---|
boolean |
forceEapUpdateChannelForEapBuilds() |
static UpdateStrategyCustomization |
getInstance() |
boolean |
haveSameMajorVersion(BuildNumber build1,
BuildNumber build2)
Returns
true if the both passed builds correspond to the same major version of the IDE. |
boolean |
isChannelActive(ChannelStatus channel) |
boolean |
isNewerVersion(BuildNumber candidateBuild,
BuildNumber currentBuild)
Returns
true if version of candidateBuild is newer than version of currentBuild so it may be suggested as an update. |
public static UpdateStrategyCustomization getInstance()
public boolean forceEapUpdateChannelForEapBuilds()
public boolean isChannelActive(ChannelStatus channel)
public boolean haveSameMajorVersion(BuildNumber build1, BuildNumber build2)
true
if the both passed builds correspond to the same major version of the IDE. The platform uses this method when several
new builds are available, to suggest updating to the build from the same major version, i.e. IntelliJ IDEA 2018.2.5 will suggest to
update to 2018.2.6, not to 2018.3.
public boolean isNewerVersion(BuildNumber candidateBuild, BuildNumber currentBuild)
true
if version of candidateBuild
is newer than version of currentBuild
so it may be suggested as an update.