Class CleanupUtils
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.cleanup.CleanupUtils
-
public final class CleanupUtils extends Object
- Since:
- 2020.1.1
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringdumpIds(gnu.trove.TLongCollection ids, int maxCount)static String[]extendIdsIfNeed(List<String> ids, int packSize)Returns array of the provided ids with sizepackSize, filled at the end with the last element ofidsif need.static StringgetRulesLogString(Collection<KeepRule> rules)static StringreplaceNewlinesInPatterns(String patterns)static <T> StringserializeUnorderedCollection(Collection<T> collection)static KeepLeveltoKeepLevel(CleanupLevel cleanupLevel)A method that maps CleanupLevel to KeepLevel in such a way that most appropriate KeepLevel is selected (KeepLevel enum is more granular).
-
-
-
Method Detail
-
dumpIds
@NotNull public static String dumpIds(@NotNull gnu.trove.TLongCollection ids, int maxCount)
-
toKeepLevel
@NotNull public static KeepLevel toKeepLevel(@NotNull CleanupLevel cleanupLevel)
A method that maps CleanupLevel to KeepLevel in such a way that most appropriate KeepLevel is selected (KeepLevel enum is more granular). This conversion is expected to be done in such a way so that 'cleanupLevel == toCleanupLevel(toKeepLevel(cleanupLevel))' would hold true for any value of 'cleanupLevel'.
-
extendIdsIfNeed
@NotNull public static String[] extendIdsIfNeed(@NotNull List<String> ids, int packSize)
Returns array of the provided ids with sizepackSize, filled at the end with the last element ofidsif need.
-
getRulesLogString
@NotNull public static String getRulesLogString(@NotNull Collection<KeepRule> rules)
-
replaceNewlinesInPatterns
@NotNull public static String replaceNewlinesInPatterns(@NotNull String patterns)
-
serializeUnorderedCollection
public static <T> String serializeUnorderedCollection(@NotNull Collection<T> collection)
-
-