This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Java in General and the fly likes Duplicating a generic inner class to a singleton Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Duplicating a generic inner class to a singleton" Watch "Duplicating a generic inner class to a singleton" New topic
Author

Duplicating a generic inner class to a singleton

Vatsa dude
Greenhorn

Joined: Apr 29, 2009
Posts: 22
Hi,
I have a requirement to duplicate an inner class MyClass to a Singleton. I've attempted to do this by implementing MySingleton. I am not sure how to use the _instance in the get and put method of MyClass. Can you please advice?

 
 
subject: Duplicating a generic inner class to a singleton
 
It's not a secret anymore!