1 package com.atlassian.util.concurrent;
2
3 import java.util.concurrent.atomic.AtomicInteger;
4
5 /**
6 * Simple Integer supplier that counts how many times it was called and
7 * returns the same
8 */
9 class Counter implements Supplier<Integer> {
10 final AtomicInteger count = new AtomicInteger();
11
12 @Override
13 public Integer get() {
14 return count.incrementAndGet();
15 }
16 }