Fragmented – Android Developer Podcast
In this mini Fragment, we introduce Joshua's third Item: Enforce the Singleton property with a private constructor or an enum type.
Stay tuned for more items from our "Effective Java for Android developers" Fragment series.
Enforce the Singleton property with a private constructor or an enum type
Approaches
getInstance
Considerations
readResolve
methodSupplemental reading (for the diligent ones that follow shownotes)