A JUG talk I presented on enumerations in Java.
- 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
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.