Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/utils/IdGenerator.java @ 3218:e0e9a2629d7d
FixA: Moved IdGenerator to top level class.
flys-artifacts/trunk@4841 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 01 Jul 2012 08:41:43 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3217:79dd823733e2 | 3218:e0e9a2629d7d |
---|---|
1 package de.intevation.flys.utils; | |
2 | |
3 public class IdGenerator { | |
4 | |
5 protected int id; | |
6 | |
7 public IdGenerator() { | |
8 } | |
9 | |
10 public IdGenerator(int id) { | |
11 this.id = id; | |
12 } | |
13 | |
14 public int next() { | |
15 return id++; | |
16 } | |
17 } | |
18 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : |