Package jetbrains.buildServer.serverSide
Class Long2StatusCollection
- java.lang.Object
-
- jetbrains.buildServer.serverSide.Long2StatusCollection
-
public class Long2StatusCollection extends Object
Map from long_value to its Status, not thread safe if not frozen. Renamed from BuildTests class, keeping the implementation. For a multiple occurences of a status for the same ID, keeps the worst status. Used to keep a map testNameId -> status or buildId -> status depending on usage context- See Also:
TestName2Index
-
-
Field Summary
Fields Modifier and Type Field Description static double
TEST_COUNT_DIFFERENCE
-
Constructor Summary
Constructors Constructor Description Long2StatusCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long2StatusCollection
createDiff(Long2StatusCollection tests)
Create a new (or reuse current BuildTests object) which uses current BuildTests as a template and contains differences in test statuses comparing to the currentboolean
forEach(BuildTestsInfo.TestProcessor processor)
Long2StatusCollection
freeze()
int
get(long longValue)
Status
getStatus(long longValue)
Long2StatusCollection
getTemplate()
boolean
isEmpty()
boolean
isFrozen()
void
put(long longValue, byte status)
int
size()
String
toString()
-
-
-
Field Detail
-
TEST_COUNT_DIFFERENCE
public static final double TEST_COUNT_DIFFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
put
public void put(long longValue, byte status)
-
forEach
public boolean forEach(@NotNull BuildTestsInfo.TestProcessor processor)
-
getStatus
@Nullable public Status getStatus(long longValue)
-
get
public int get(long longValue)
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
freeze
@NotNull public Long2StatusCollection freeze()
-
getTemplate
@Nullable public Long2StatusCollection getTemplate()
-
createDiff
@Nullable public Long2StatusCollection createDiff(@NotNull Long2StatusCollection tests)
Create a new (or reuse current BuildTests object) which uses current BuildTests as a template and contains differences in test statuses comparing to the current- Parameters:
tests
- to be replaced with a returned BuildTests- Returns:
- new object or null if diff cannot be created
-
isFrozen
public boolean isFrozen()
-
-