public class GbjIterator extends Object implements Enumeration
New constructor GbjIterator(GbjObject onCollection, long startingIdx) .
Modifier and Type | Field and Description |
---|---|
static int |
BatchSize
Specifies batch size.
|
Constructor and Description |
---|
GbjIterator(GbjCollection onCollection)
Usual Constructor
|
GbjIterator(GbjObject onCollection)
Usual Constructor.
|
GbjIterator(GbjObject onCollection,
long startingIdx)
Constructor with starting index
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasMoreElements()
Return true if there are more elements to return from this iterator.
|
Object |
nextElement()
Return the next element from this iterator.
|
GbjObject[] |
remainingElements()
Return all of the remaining elements left in the iterator.
|
public static int BatchSize
public GbjIterator(GbjObject onCollection, long startingIdx)
onCollection
- collection to iterate overstartingIdx
- starting index for iterationpublic GbjIterator(GbjObject onCollection)
onCollection
- collection to iterate overpublic GbjIterator(GbjCollection onCollection)
onCollection
- collection to iterate overpublic boolean hasMoreElements()
hasMoreElements
in interface Enumeration
public Object nextElement()
nextElement
in interface Enumeration
public GbjObject[] remainingElements()