Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Duplicating a generic inner class to a singleton

 
Vatsa dude
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic