KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > workflow > designer > IDGenerator


1 package com.opensymphony.workflow.designer;
2
3 public class IDGenerator
4 {
5   private int nextId;
6
7   public int generateId()
8   {
9     return nextId++;
10   }
11
12   public void checkId(int id)
13   {
14     if(id>=nextId) nextId = id+1;
15   }
16 }
17
Popular Tags