KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > commons > utils > ExoEnumeration


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.commons.utils;
6
7 /** * Jul 11, 2004
8  * @author: Tuan Nguyen
9  * @email: tuan08@users.sourceforge.net
10  * @version: $Id: ExoEnumeration.java,v 1.3 2004/07/13 02:46:19 tuan08 Exp $
11  */

12
13 import java.util.Iterator JavaDoc;
14 import java.util.Enumeration JavaDoc;
15
16 /**
17  * @author Ove Ranheim (oranheim@users.sourceforge.net)
18  * @since Nov 9, 2003 4:01:29 PM
19  */

20 public class ExoEnumeration implements Enumeration JavaDoc {
21   private Iterator JavaDoc iterator_ ;
22
23   public ExoEnumeration(Iterator JavaDoc i) {
24     iterator_ = i ;
25   }
26
27   public boolean hasMoreElements() {
28     return iterator_.hasNext();
29   }
30
31   public Object JavaDoc nextElement() {
32     return iterator_.next();
33   }
34 }
Popular Tags