Top "Enumeration" questions

The process of enumerating values, for example from some collection.

Treat Enumeration<T> as Iterator<T>

I have a class that implements the Enumeration<T> interface, but Java's foreach loop requires the Iterator<…

java iterator foreach enumeration adapter
ARC Strong property Enumeration Error

I have the following code and am getting this error before compiling: Fast Enumeration Variables can't be modified in ARC …

objective-c properties automatic-ref-counting enumeration
XSD: is there a way to build an enumeration from name/value pairs?

I would like to have an enumeration in my XSD that specifies a set of name/value pairs corresponding to …

xsd enumeration name-value
Java MyBatis Enum string value

I feel like this is a simple problem, but none of the things i tried work for me. I have …

java enums mybatis enumeration ibatis
Objective C — What is the fastest and most efficient way to enumerate an array?

Edit I read through some articles on blocks and fast enumeration and GCD and the like. @Bbum, who's written many …

objective-c arrays enumeration grand-central-dispatch objective-c-blocks
How can I eliminate duplicated Enum code?

I have a large number of Enums that implement this interface: /** * Interface for an enumeration, each element of which can …

java enums enumeration
What's the equivalent to a .NET SortedDictionary, in Java?

If .NET has a SortedDictionary object ... what is this in Java, please? I also need to be able to retrieve …

java .net data-structures enumeration sorteddictionary
Are booleans as method arguments unacceptable?

A colleague of mine states that booleans as method arguments are not acceptable. They shall be replaced by enumerations. At …

coding-style boolean enumeration
Enumerate over a sequence in Clojure?

In Python I can do this: animals = ['dog', 'cat', 'bird'] for i, animal in enumerate(animals): print i, animal Which …

clojure enumeration
How to reuse simpleType redefinition in XSD

Imagine there is a defined simple type in definition.xsd <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"&…

xsd enumeration reusability simpletype