Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.eireneh.util
Class ArrayEnumeration  view ArrayEnumeration download ArrayEnumeration.java

java.lang.Object
  extended bycom.eireneh.util.ArrayEnumeration
All Implemented Interfaces:
java.util.Enumeration

public class ArrayEnumeration
extends java.lang.Object
implements java.util.Enumeration

Helper class to enumerate through the objects in an array.
Distribution Licence:
Project B is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
The License is available on the internet here, by writing to Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA, Or locally at the Licence link below.
The copyright to this program is held by it's authors.


Field Summary
protected  java.lang.Object[] array
          The array to iterate through
protected  int end
          The place to stop when we reach
protected  int pos
          The current position in the array
 
Constructor Summary
ArrayEnumeration(java.lang.Object[] array)
          Setup the Enumeration with an array to iterate through
ArrayEnumeration(java.lang.Object[] array, int start)
          Setup the Enumeration with an array to iterate through
ArrayEnumeration(java.lang.Object[] array, int start, int end)
          Setup the Enumeration with an array to iterate through
 
Method Summary
 boolean hasMoreElements()
          Are there more items in the database?
 java.lang.Object nextElement()
          Get the next item from the database
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

array

protected java.lang.Object[] array
The array to iterate through


pos

protected int pos
The current position in the array


end

protected int end
The place to stop when we reach

Constructor Detail

ArrayEnumeration

public ArrayEnumeration(java.lang.Object[] array)
Setup the Enumeration with an array to iterate through


ArrayEnumeration

public ArrayEnumeration(java.lang.Object[] array,
                        int start)
Setup the Enumeration with an array to iterate through


ArrayEnumeration

public ArrayEnumeration(java.lang.Object[] array,
                        int start,
                        int end)
Setup the Enumeration with an array to iterate through

Method Detail

hasMoreElements

public boolean hasMoreElements()
Are there more items in the database?

Specified by:
hasMoreElements in interface java.util.Enumeration

nextElement

public java.lang.Object nextElement()
Get the next item from the database

Specified by:
nextElement in interface java.util.Enumeration