ca.infoway.messagebuilder.j5goodies
Class EnumeratedIterable

Package class diagram package EnumeratedIterable
java.lang.Object
  extended by ca.infoway.messagebuilder.j5goodies.EnumeratedIterable

public class EnumeratedIterable
extends Object

A utility that helps represent old Enumeration objects as an Iterable type, for use in new 'for' contructs.

Author:
Intelliware Development

Constructor Summary
EnumeratedIterable()
           
 
Method Summary
static
<T> Iterable<T>
iterable(Enumeration<T> e)
          Convert the enumeration into an iterable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumeratedIterable

public EnumeratedIterable()
Method Detail

iterable

public static <T> Iterable<T> iterable(Enumeration<T> e)

Convert the enumeration into an iterable.

Type Parameters:
T - the element type
Parameters:
e - - the enumeration
Returns:
- an iterable type


Copyright © 2013. All Rights Reserved.