Package jetbrains.buildServer.util
Class NameCounter
- java.lang.Object
-
- jetbrains.buildServer.util.NameCounter
-
public class NameCounter extends java.lang.Object
User: kir Class maintains counter for tests with same name.
-
-
Constructor Summary
Constructors Constructor Description NameCounter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Reset collected statsint
incrementAndGetCountFor(long id)
Each call to this method with same parameter returns and increases counter, unique for given name
-
-
-
Method Detail
-
incrementAndGetCountFor
public int incrementAndGetCountFor(long id)
Each call to this method with same parameter returns and increases counter, unique for given name- Parameters:
id
- id- Returns:
- counter of calls with this name parameter, starting from 1
-
clear
public void clear()
Reset collected stats
-
-