org.openjena.atlas.iterator
Class IteratorArray<T>

java.lang.Object
  extended by org.openjena.atlas.iterator.IteratorArray<T>
All Implemented Interfaces:
Iterator<T>

public final class IteratorArray<T>
extends Object
implements Iterator<T>

Iterator over a Java base array


Method Summary
static
<T> IteratorArray<T>
create(T[] array)
          Iterator over all the array elements
static
<T> IteratorArray<T>
create(T[] array, int start, int finish)
          Iterator over array elements from start (inclusive) to finish (exclusive)
 T current()
           
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static <T> IteratorArray<T> create(T[] array)
Iterator over all the array elements


create

public static <T> IteratorArray<T> create(T[] array,
                                          int start,
                                          int finish)
Iterator over array elements from start (inclusive) to finish (exclusive)


hasNext

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

current

public T current()

next

public T next()
Specified by:
next in interface Iterator<T>

remove

public void remove()
Specified by:
remove in interface Iterator<T>


Licenced under the Apache License, Version 2.0