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

com.pengrad.telegrambot.AttachName Maven / Gradle / Ivy

There is a newer version: 7.11.0
Show newest version
package com.pengrad.telegrambot;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * Stas Parshin
 * 29 July 2018
 */
public class AttachName {

    private AttachName() {}

    private static final AtomicInteger counter = new AtomicInteger();

    public static String next() {
        return "attach" + counter.incrementAndGet();
    }

    public static void reset() {
        counter.set(0);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy