org.springframework.osgi.mock
Class ArrayEnumerator<E>

java.lang.Object
  extended by org.springframework.osgi.mock.ArrayEnumerator<E>
All Implemented Interfaces:
Enumeration<E>

public class ArrayEnumerator<E>
extends Object
implements Enumeration<E>

Simple enumeration mock backed by an array of objects.


Constructor Summary
ArrayEnumerator(E[] source)
           
 
Method Summary
 boolean hasMoreElements()
           
 E nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayEnumerator

public ArrayEnumerator(E[] source)
Method Detail

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface Enumeration<E>

nextElement

public E nextElement()
Specified by:
nextElement in interface Enumeration<E>


Copyright © 2006-2011 Spring Framework. All Rights Reserved.