Top Description Fields Constructors Methods
org.eclipse.persistence.jpa.jpql.utility.iterable

public Class ArrayIterable<E>

extends Object
implements Iterable<E>
Class Inheritance
All Implemented Interfaces
java.lang.Iterable
Type Parameters
<E>
the type of elements returned by the iterable's iterator
Imports
java.util.Arrays, .Iterator, org.eclipse.persistence.jpa.jpql.utility.iterator.ArrayIterator

An ArrayIterable provides an Iterable for an array of objects of type E.
See Also
ArrayIterator, ArrayListIterable

Field Summary

Modifier and TypeField and Description
pack-priv final E[]
pack-priv final int
pack-priv final int

Constructor Summary

AccessConstructor and Description
public
ArrayIterable(E... array)

Construct an iterable for the specified array.

public
ArrayIterable(E[] array, int start)

Construct an iterable for the specified array, starting at the specified start index and continuing for the rest of the array.

public
ArrayIterable(E[] array, int start, int length)

Construct an iterable for the specified array, starting at the specified start index and continuing for the specified length.

Method Summary

Modifier and TypeMethod and Description
public Iterator<E>
iterator()

Implements java.lang.Iterable.iterator.

Returns an iterator over elements of type T.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

arrayback to summary
pack-priv final E[] array
lengthback to summary
pack-priv final int length
startback to summary
pack-priv final int start

Constructor Detail

ArrayIterableback to summary
public ArrayIterable(E... array)

Construct an iterable for the specified array.

Annotations
@SafeVarargs
@SuppressWarnings:varargs
ArrayIterableback to summary
public ArrayIterable(E[] array, int start)

Construct an iterable for the specified array, starting at the specified start index and continuing for the rest of the array.

ArrayIterableback to summary
public ArrayIterable(E[] array, int start, int length)

Construct an iterable for the specified array, starting at the specified start index and continuing for the specified length.

Method Detail

iteratorback to summary
public Iterator<E> iterator()

Implements java.lang.Iterable.iterator.

Doc from java.lang.Iterable.iterator.

Returns an iterator over elements of type T.

Returns:Iterator<E>

an Iterator.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override