
org.duelengine.duel.IncClientIDStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of duel-runtime Show documentation
Show all versions of duel-runtime Show documentation
Dual-side template engine for the JVM
The newest version!
package org.duelengine.duel;
public class IncClientIDStrategy implements ClientIDStrategy {
private final String prefix;
private int counter;
public IncClientIDStrategy() {
this("_");
}
public IncClientIDStrategy(String value) {
prefix = value;
}
public void resetID() {
counter = 0;
}
@Override
public String nextID() {
return prefix + (counter++);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy