G4P GUI Builder  4.4
Visual GUI designer for the G4P v4.3.1 library
 All Classes Namespaces Functions Variables
g4p.tool.controls.IdGen Class Reference

Public Member Functions

boolean used (Integer id)
 
void add (Integer id)
 
void remove (Integer id)
 
void reset ()
 
Integer getNext ()
 
String get_size ()
 

Static Public Member Functions

static IdGen instance ()
 

Private Attributes

Set< Integer > ids
 

Static Private Attributes

static IdGen instance
 
static int low = 200000
 
static int high = 999999
 
static Random rnd
 

Detailed Description

Singleton class to provide unique identity numbers.

Author
Peter Lager

The documentation for this class was generated from the following file: