com.hp.hpl.jena.util.iterator
Class ArrayIterator<T>

java.lang.Object
  extended by com.hp.hpl.jena.util.iterator.ArrayIterator<T>
All Implemented Interfaces:
java.util.Iterator<T>

public class ArrayIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>

An Iterator for arrays.

Version:
Release='$Name: Jena-2_6_4 $' Revision='$Revision: 1.1 $' Date='$Date: 2009/06/29 08:55:49 $'
Author:
Jeremy Carroll

Constructor Summary
ArrayIterator(T[] array)
          Constructs an iterator over the members of an array.
 
Method Summary
 boolean hasNext()
           
 T next()
           
 void remove()
          Not supported.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayIterator

public ArrayIterator(T[] array)
Constructs an iterator over the members of an array. All arrays are supported including primitive types.

Parameters:
array - Must be an array.
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<T>

next

public T next()
       throws java.util.NoSuchElementException
Specified by:
next in interface java.util.Iterator<T>
Throws:
java.util.NoSuchElementException

remove

public void remove()
Not supported.

Specified by:
remove in interface java.util.Iterator<T>
Throws:
java.lang.UnsupportedOperationException - Always.


Copyright ? 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP