Перенос.
This commit is contained in:
24
src/Common/Utils/Index.java
Normal file
24
src/Common/Utils/Index.java
Normal file
@@ -0,0 +1,24 @@
|
||||
package Common.Utils;
|
||||
import java.io.Serializable;
|
||||
public class Index implements Serializable {
|
||||
int value = 0;
|
||||
public int Inc() {
|
||||
return value++;
|
||||
}
|
||||
public int Dec() {
|
||||
return value--;
|
||||
}
|
||||
public void Set(int value_in) {
|
||||
value = value_in;
|
||||
}
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
public void Reset() {
|
||||
value = 0;
|
||||
}
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user