org.erights.e.meta.java.util
Class EnumerationSugar

java.lang.Object
  |
  +--org.erights.e.meta.java.util.EnumerationSugar

public class EnumerationSugar
extends Object

Untamed: A sweetener defining extra messages that may be e-sent to an Enumeration.

Author:
Mark S. Miller

Constructor Summary
private EnumerationSugar()
          prevents instantiation
 
Method Summary
static ConstList asList(Enumeration self)
          Enabled:
static void iterate(Enumeration self, AssocFunc func)
          Enabled: Enumerates the enumeration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumerationSugar

private EnumerationSugar()
prevents instantiation

Method Detail

iterate

public static void iterate(Enumeration self,
                           AssocFunc func)
Enabled: Enumerates the enumeration. For each element, calls func with the count as key and the element as value.


asList

public static ConstList asList(Enumeration self)
Enabled:



comments?