|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.common.util.iterator.ArrayEnumerator
public class ArrayEnumerator
Array enumerator class. Implements the Enumerator interface to get an enumerator for objects contained in an array.
| Constructor Summary | |
|---|---|
ArrayEnumerator(java.lang.Object[] array)
Default constructor. |
|
ArrayEnumerator(java.lang.Object[] array,
int start,
int count)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
hasMoreElements()
Checks if there are more array elements. |
java.lang.Object |
nextElement()
Gets the current array element and advances the current position. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayEnumerator(java.lang.Object[] array)
array - Array to enumerate
public ArrayEnumerator(java.lang.Object[] array,
int start,
int count)
array - Array to enumeratestart - Index of the first object to returncount - Number of objects to enumerate| Method Detail |
|---|
public boolean hasMoreElements()
hasMoreElements in interface java.util.Enumerationpublic java.lang.Object nextElement()
nextElement in interface java.util.Enumeration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||