FileDocCategorySizeDatePackage
SingletonPattern.javaAPI DocExample3323Mon Apr 06 18:10:22 BST 1998c16

Singleton

public final class Singleton extends Object

Fields Summary
private static Singleton
s
private int
i
Constructors Summary
private Singleton(int x)

      i = x; 
Methods Summary
public static c16.SingletongetHandle()

 
    return s; 
  
public intgetValue()

 return i; 
public voidsetValue(int x)

 i = x;