Top "Enumeration" questions

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

Iterate enum values using java generics

I'm trying to find a way to iterate through an enum's values while using generics. Not sure how to do …

java generics enums enumeration
What are the differences between a Java enum and a class with private constructor?

I was trying to understand how Java enum really works and I have come to the conclusion that it is …

java enums enumeration
Get to get all child scopes in Angularjs given the parent scope

I would like to know how to get a list of all child scopes given a parent scope. All I …

angularjs angularjs-scope parent-child enumeration
How to read a properties file in java in the original order

I need to read a properties file and generate a Properties class in Java. I do so by using: Properties …

java properties enumeration
Distinction between iterator and enumerator

An interview question for a .NET 3.5 job is "What is the difference between an iterator and an enumerator"? This is …

c# .net iterator generator enumeration
Populate an enum with values from database

I have a table which maps String->Integer. Rather than create an enum statically, I want to populate the …

hashmap enumeration java
Is there a way to iterate through HttpServletRequest.getAttributeNames() more than once?

I'm trying to log the contents of the HttpServletRequest attributes collection. I need to do this when the servlet first …

java attributes enumeration servlets enumerator
Get an Enumeration (for the Keys) of a Map (HashMap) in Java?

As far as I understand this, it seems that there is not a direct way of getting an Enumeration directly …

java enumeration
What is the BOOL *stop argument for enumerateObjectsUsingBlock: used for?

I've been using enumerateObjectsUsingBlock: a lot lately for my fast-enumeration needs, and I'm having a hard time understanding the usage …

objective-c cocoa-touch nsarray enumeration fast-enumeration
Removing from array during enumeration in Swift?

I want to enumerate through an array in Swift, and remove certain items. I'm wondering if this is safe to …

ios arrays swift enumeration