| |
| /* |
| * weinre is available under *either* the terms of the modified BSD license *or* the |
| * MIT License (2008). See http://opensource.org/licenses/alphabetical for full text. |
| * |
| * Copyright (c) 2011 IBM Corporation |
| */ |
| |
| //----------------------------------------------------------------------------- |
| class IDGenerator |
| |
| //----------------------------------------------------------------------------- |
| init |
| var nextId = 1 |
| |
| //----------------------------------------------------------------------------- |
| static method next |
| var result = nextId |
| nextId += 1 |
| return result |