This project has retired. For details please refer to its Attic page.
RollingVectorEnumeration (Tiles 2 2.1.4 Test API)

org.apache.tiles.util
Class RollingVectorEnumeration<E>

Package class diagram package RollingVectorEnumeration
java.lang.Object
  extended by org.apache.tiles.util.RollingVectorEnumeration<E>
Type Parameters:
E - The type of the element of this enumeration.
All Implemented Interfaces:
Enumeration<E>

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

It represents an vector-based enumeration when, when it has finished enumerating items, it starts from the beginning.

Version:
$Rev: 645636 $ $Date: 2008-04-07 20:12:50 +0200 (lun, 07 apr 2008) $

Constructor Summary
RollingVectorEnumeration(Vector<E> vector)
          Constructor.
 
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

RollingVectorEnumeration

public RollingVectorEnumeration(Vector<E> vector)
Constructor.

Parameters:
vector - The vector.
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 © 2001-2009 Apache Software Foundation. All Rights Reserved.