| Constructor and Description |
|---|
IterationMeta(String alias,
int length) |
IterationMeta(String alias,
Iterator<?> iterator) |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(String key) |
int |
getIndex()
The first element is at index
1. |
int |
getPosition()
The name for
getIndex() was poorly chosen. |
boolean |
hasNext() |
boolean |
isEven() |
boolean |
isFirst() |
boolean |
isLast() |
boolean |
isOdd() |
void |
nextIteration() |
public IterationMeta(String alias, Iterator<?> iterator)
alias - iterator - public IterationMeta(String alias, int length)
alias - length - public int getIndex()
1.public int getPosition()
getIndex() was poorly chosen. We should have used
getCount() instead. But we can't change it now - it would break
backward compatibility.0public boolean hasNext()
true if the iteration has more elements,
false otherwisepublic boolean isFirst()
true for the first iteration, false
otherwisepublic boolean isLast()
true for the last iteration, false
otherwisepublic boolean isOdd()
true if the current index is odd, false
otherwisepublic boolean isEven()
true if the current index is even,
false otherwisepublic void nextIteration()
Copyright © 2015. All rights reserved.