Package jetbrains.buildServer.serverSide
Class BuildTypeIds
- java.lang.Object
-
- jetbrains.buildServer.serverSide.BuildTypeIds
-
public class BuildTypeIds extends Object
-
-
Constructor Summary
Constructors Constructor Description BuildTypeIds(Collection<String> stringIds)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
clearPool(long maxAge)
Removes pooled ids which were not reused for the specified time in milliseconds.static BuildTypeIds
create(Collection<String> ids)
Creates a new BuildTypeIds instanceboolean
equals(Object o)
String[]
getIds()
static BuildTypeIds
getOrCreate(Collection<String> ids)
Creates a new BuildTypeIds instance and caches it if there is no cached instance with specified ids yet, otherwise returns already existing instance.int
hashCode()
int
indexOf(String id)
boolean
intersects(BuildTypeIds buildTypeIds)
void
processIds(BuildTypeIds ids, ItemProcessor<String> idProcessor)
void
processIds(ItemProcessor<String> idProcessor)
static boolean
removeFromPool(BuildTypeIds ids)
int
size()
String
toString()
-
-
-
Constructor Detail
-
BuildTypeIds
public BuildTypeIds(@NotNull Collection<String> stringIds)
-
-
Method Detail
-
getOrCreate
@NotNull public static BuildTypeIds getOrCreate(@NotNull Collection<String> ids)
Creates a new BuildTypeIds instance and caches it if there is no cached instance with specified ids yet, otherwise returns already existing instance.- Parameters:
ids
-- Returns:
- see above
-
create
@NotNull public static BuildTypeIds create(@NotNull Collection<String> ids)
Creates a new BuildTypeIds instance- Parameters:
ids
-- Returns:
-
getIds
@NotNull public String[] getIds()
-
processIds
public void processIds(@NotNull ItemProcessor<String> idProcessor)
-
intersects
public boolean intersects(BuildTypeIds buildTypeIds)
-
processIds
public void processIds(@NotNull BuildTypeIds ids, @NotNull ItemProcessor<String> idProcessor)
-
indexOf
public int indexOf(@NotNull String id)
-
size
public int size()
-
clearPool
public static void clearPool(long maxAge)
Removes pooled ids which were not reused for the specified time in milliseconds. If maxAge = 0, then all ids which were used only once will be removed from the pool. If maxAge = -1, then the whole pool is cleaned up.- Parameters:
maxAge
- max ids age in milliseconds
-
removeFromPool
public static boolean removeFromPool(@NotNull BuildTypeIds ids)
-
-