All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.highway2urhell.domain.ThunderData Maven / Gradle / Ivy

There is a newer version: 1.0.5
Show newest version
package com.highway2urhell.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.concurrent.atomic.AtomicLong;

public class ThunderData {

    @Override
	public String toString() {
		return "ThunderData [counter=" + counter + ", listDate=" + listDate
				+ ", methodName=" + methodName + "]";
	}

	private final AtomicLong counter;
    private final List listDate;
    private final String methodName;
  
	public ThunderData(String methodName) {
        this.methodName = methodName;
        counter = new AtomicLong();
        listDate = new ArrayList();
    }

    public String getMethodName() {
        return methodName;
    }

    public Long getCount() {
        return counter.get();
    }

    public long incrementCounter() {
        listDate.add(new Date());
        return counter.incrementAndGet();
    }

    public List getListDate() {
        return listDate;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy