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

com.fnklabs.metrics.Counter Maven / Gradle / Ivy

package com.fnklabs.metrics;

public interface Counter {
    /**
     * Increment the counter by one.
     */
    void inc();

    /**
     * Increment the counter by {@code n}.
     *
     * @param n the amount by which the counter will be increased
     */
    void inc(long n);

    /**
     * Decrement the counter by one.
     */
    void dec();

    /**
     * Decrement the counter by {@code n}.
     *
     * @param n the amount by which the counter will be decreased
     */
    void dec(long n);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy