Data update
This commit is contained in:
parent
5af6d93694
commit
796d366b97
455 changed files with 7413 additions and 1900 deletions
|
|
@ -1,20 +1,15 @@
|
|||
class Singleton
|
||||
{
|
||||
private static Singleton myInstance;
|
||||
public static Singleton getInstance()
|
||||
{
|
||||
if (myInstance == null)
|
||||
{
|
||||
myInstance = new Singleton();
|
||||
}
|
||||
public enum Singleton {
|
||||
INSTANCE;
|
||||
|
||||
return myInstance;
|
||||
// Fields, constructors and methods...
|
||||
private int value;
|
||||
Singleton() {
|
||||
value = 0;
|
||||
}
|
||||
|
||||
protected Singleton()
|
||||
{
|
||||
// Constructor code goes here.
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
public void setValue(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
// Any other methods
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue