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

com.mycomm.itool.security.AccessCounter Maven / Gradle / Ivy

The newest version!
package com.mycomm.itool.security;

public class AccessCounter {
    private long counter;

    public AccessCounter() {
    }

    public AccessCounter(long counter) {
        this.counter = counter;
    }

    public void reset(){
        if(this.counter != 0){
            this.counter=0;
        }
    }

    public long getCounter() {
        return counter;
    }
    public void increase(){
        this.counter++;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy