A JUG talk from May 2009 I presented on enumerations in Java. I cover:
- The old "type-safe enumeration pattern"
- Using enums for values
- Adding data and methods to enums
- Using enums for the Gang-of-Four State Pattern
- Using enums to emulate function pointers in Java
- EnumSet and EnumMap
Note: I'm adding more videos as I get time. Subscribe to my RSS feed to be notified.
I've uploaded the following videos to vimeo. Each is listed below with a short description. I recommend you watch them in order as they assume knowledge of previous videos.
Android Development in Eclipse by Scott Stanchfield is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 United States License.
Feel free to watch the videos and point friends to them, but you cannot use them as part of any commercial product nor can you create derivative works. Follow the link above to see the complete license text.
All sample code is licensed under the Eclipse Public License, version 1.0.
See http://www.eclipse.org/legal/epl-v10.html for details.