Skip navigation links
D G I M S T U 

S

setData(int) - Method in class models.Singleton1
Singleton1.data setter method
setData(int) - Method in class models.Singleton2
Singleton2.data setter method
setData(int) - Method in class models.Singleton3
Singleton3.data setter method
setData(int) - Method in class models.Singleton4
Singleton4.data setter method
Singleton1 - Class in models
Singleton1 is an implementation of a class that only allows one instantiation.
It has a simple state of a single integer variable Singleton1.data.
Tested by TestSingleton1
Singleton1() - Constructor for class models.Singleton1
The constructor is protected so that it is controlled by the class.
Initially the Singleton1.data value is set to 0.

Singleton2 - Class in models
Singleton2 is an implementation of a class that only allows one instantiation.
It has a simple state of a single integer variable Singleton2.data.
Tested by TestSingleton2
Singleton2() - Constructor for class models.Singleton2
The constructor is private so that it is controlled by the class.
Initially the Singleton2.data value is set to 0.

Singleton3 - Class in models
Singleton3 is an implementation of a class that only allows one instantiation.
It has a simple state of a single integer variable Singleton3.data.
Tested by TestSingleton3
Singleton3() - Constructor for class models.Singleton3
The constructor is private so that it is controlled by the class.
Initially the Singleton3.data value is set to 0.

Singleton4 - Class in models
Singleton4 is an implementation of a class that only allows one instantiation.
It has a simple state of a single integer variable Singleton4.data.
Follows Java specific design proposed by Bill Pugh from Concurrent programming in Java: design principles and patterns
Tested by TestSingleton4
Singleton4() - Constructor for class models.Singleton4
The constructor is private so that it is controlled by the class.
Initially the Singleton4.data value is set to 0.

Singleton4.SingletonHolder - Class in models
SingletonHolder is loaded on the first execution of Singleton4.getInstance() or the first access to SingletonHolder.INSTANCE, not before.
SingletonHolder() - Constructor for class models.Singleton4.SingletonHolder
 
D G I M S T U 
Skip navigation links