All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.tck.config.EnumerationIterable Maven / Gradle / Ivy

The newest version!
package org.hibernate.tck.config;

import java.util.Enumeration;
import java.util.Iterator;

/**
 * An Enumeration -> Iterable adaptor
 *  
 * @author Pete Muir
 * @see org.jboss.webbeans.util.EnumerationIterator
 */
class EnumerationIterable implements Iterable
{
   // The enumeration-iteartor
   private EnumerationIterator iterator;
   
   /**
    * Constructor
    * 
    * @param enumeration The enumeration
    */
   public EnumerationIterable(Enumeration enumeration)
   {
      this.iterator = new EnumerationIterator(enumeration);
   }
   
   /**
    * Gets an iterator
    * 
    * @return The iterator
    */
   public Iterator iterator()
   {
      return iterator;
   }
   
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy