com.hp.hpl.mesa.rdf.jena.common.prettywriter
Class ArrayIterator

java.lang.Object
  |
  +--com.hp.hpl.mesa.rdf.jena.common.prettywriter.ArrayIterator
All Implemented Interfaces:
java.util.Iterator

public class ArrayIterator
extends java.lang.Object
implements java.util.Iterator

An Iterator for arrays.

Version:
Release='$Name: $' Revision='$Revision: 1.2 $' Date='$Date: 2001/07/04 17:54:01 $'
Author:
Jeremy Carroll

Constructor Summary
ArrayIterator(java.lang.Object array)
          Constructs an iterator over the members of an array.
 
Method Summary
 boolean hasNext()
           
 java.lang.Object 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(java.lang.Object 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

next

public java.lang.Object next()
                      throws java.util.NoSuchElementException
Specified by:
next in interface java.util.Iterator

remove

public void remove()
Not supported.
Specified by:
remove in interface java.util.Iterator
Throws:
java.lang.UnsupportedOperationException - Always.


Copyright 2001 Hewlett-Packard. All Rights Reserved.