Package jetbrains.buildServer.plugins
Class ServerPluginVersionComparator
- java.lang.Object
-
- jetbrains.buildServer.plugins.ServerPluginVersionComparator
-
- All Implemented Interfaces:
PluginVersionComparator
public class ServerPluginVersionComparator extends Object implements PluginVersionComparator
Implementation should provide version comparison for plugins.- Since:
- 4.5
- Author:
- Eugene Petrenko
-
-
Constructor Summary
Constructors Constructor Description ServerPluginVersionComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Date
getBuildDate()
Pair<Collection<SnapshotPluginInfo>,Collection<PluginInfo>>
getSnapshotsAndReleases(Collection<PluginInfo> data)
PluginInfo
selectPluginToLoad(Collection<PluginInfo> _plugins)
Compares plugin version to select plugin that will be loaded.
-
-
-
Method Detail
-
selectPluginToLoad
@NotNull public PluginInfo selectPluginToLoad(@NotNull Collection<PluginInfo> _plugins)
Compares plugin version to select plugin that will be loaded.- Specified by:
selectPluginToLoad
in interfacePluginVersionComparator
- Parameters:
_plugins
- list of plugins to compare ordered by lookup. Newer plugin is latest- Returns:
- comparison result as object
- Since:
- 6.0
-
getBuildDate
@NotNull protected Date getBuildDate()
-
getSnapshotsAndReleases
public Pair<Collection<SnapshotPluginInfo>,Collection<PluginInfo>> getSnapshotsAndReleases(@NotNull Collection<PluginInfo> data)
-
-