Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/utils/IdGenerator.java @ 3786:4adc35aa655c
merged flys-artifacts/2.9.1
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:14:47 +0200 |
parents | e0e9a2629d7d |
children |
comparison
equal
deleted
inserted
replaced
3719:e82acd5c86f7 | 3786:4adc35aa655c |
---|---|
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 : |