com.hp.hpl.jena.util.iterator
Class ArrayIterator
java.lang.Object
com.hp.hpl.jena.util.iterator.ArrayIterator
- All Implemented Interfaces:
- Iterator
public class ArrayIterator
- extends Object
- implements Iterator
An Iterator for arrays.
- Version:
- Release='$Name: $' Revision='$Revision: 1.3 $' Date='$Date: 2003/08/27 13:07:54 $'
- Author:
- Jeremy Carroll
Constructor Summary |
ArrayIterator(Object array)
Constructs an iterator over the members of an array. |
ArrayIterator
public ArrayIterator(Object array)
- Constructs an iterator over the members of an array.
All arrays are supported including primitive types.
- Parameters:
array
- Must be an array.
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator
next
public Object next()
throws NoSuchElementException
- Specified by:
next
in interface Iterator
- Throws:
NoSuchElementException
remove
public void remove()
- Not supported.
- Specified by:
remove
in interface Iterator
- Throws:
UnsupportedOperationException
- Always.
Copyright © 2000, 2001, 2002, 2003, 2004 Hewlett-Packard Development Company, LP