Java Enumerations

A JUG talk 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

Video License

Creative Commons License
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.

Sample Code

jug20090527-code-enumerations.zip

Software License

All sample code is licensed under the Eclipse Public License, version 1.0.

See http://www.eclipse.org/legal/epl-v10.html for details.