jetbrains.buildServer.util
Class NameCounter

java.lang.Object
  extended by jetbrains.buildServer.util.NameCounter

public class NameCounter
extends java.lang.Object

User: kir Class maintains counter for tests with same name.


Constructor Summary
NameCounter()
           
 
Method Summary
 void clear()
          Reset collected stats
 int incrementAndGetCountFor(long id)
          Each call to this method with same parameter returns and increases counter, unique for given name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameCounter

public NameCounter()
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 -
Returns:
counter of calls with this name parameter, starting from 1

clear

public void clear()
Reset collected stats