Merge remote-tracking branch 'origin/feature_json-gardenplan_M2' into feature_json-task-db_M2
This commit is contained in:
commit
e550f5549a
|
@ -0,0 +1,11 @@
|
||||||
|
package ch.zhaw.gartenverwaltung.io;
|
||||||
|
|
||||||
|
public class IdProvider {
|
||||||
|
private long currentId;
|
||||||
|
public IdProvider(long initialValue) {
|
||||||
|
currentId = initialValue;
|
||||||
|
}
|
||||||
|
public long incrementAndGet() {
|
||||||
|
return ++currentId;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue