Top "Enums" questions

A data type consisting of a set of named values called elements, members or enumerators of the type.

Java getting the Enum name given the Enum Value

How can I get the name of a Java Enum type given its value? I have the following code which …

java enums enumeration
How to bind RadioButtons to an enum?

I've got an enum like this: public enum MyLovelyEnum { FirstSelection, TheOtherSelection, YetAnotherOne }; I got a property in my DataContext: public …

wpf data-binding enums radio-button
Java: using switch statement with enum under subclass

First I'll state that I'm much more familiar with enums in C# and it seems like enums in java is …

java enums switch-statement
Map enum in JPA with fixed values?

I'm looking for the different ways to map an enum using JPA. I especially want to set the integer value …

java spring orm jpa enums
Automatically create an Enum based on values in a database lookup table?

How do I automatically create an enum and subsequently use its values in C# based on values in a database …

c# database dynamic enums
convert an enum to another type of enum

I have an enum of for example 'Gender' (Male =0 , Female =1) and I have another enum from a service which has …

c# enums
Getting all names in an enum as a String[]

What's the easiest and/or shortest way possible to get the names of enum elements as an array of Strings? …

java arrays enums
Conveniently map between enum and int / String

When working with variables/parameters that can only take a finite number of values, I try to always use Java's …

java enums coding-style
enum - getting value of enum on string conversion

I have following enum defined from enum import Enum class D(Enum): x = 1 y = 2 print(D.x) now the printed …

python python-3.x enums python-3.4
What's the common practice for enums in Python?

Possible Duplicate: How can I represent an 'enum' in Python? What's the common practice for enums in Python? I.e. …

python enums