info.bliki.wiki.model.Counter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bliki-core Show documentation
Show all versions of bliki-core Show documentation
This is the core project.
The newest version!
package info.bliki.wiki.model;
public class Counter {
private int fValue;
public Counter() {
fValue = 0;
}
public Counter(int value) {
fValue = value;
}
public int inc() {
return ++fValue;
}
public int dec() {
return --fValue;
}
public int getCounter() {
return fValue;
}
}