| Constructor and Description |
|---|
ImmutableIterationMeta(String alias,
int size,
int index) |
ImmutableIterationMeta(String alias,
int size,
int index,
String valueAlias,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(String key) |
int |
getIndex()
The first element is at index
1. |
String |
getIndexParity() |
int |
getPosition()
The name for
getIndex() was poorly chosen. |
Object |
getValue() |
String |
getValueAlias() |
boolean |
hasNext() |
boolean |
isEven() |
boolean |
isFirst() |
boolean |
isLast() |
boolean |
isOdd() |
public ImmutableIterationMeta(String alias, int size, int index)
alias - size - index - 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 String getIndexParity()
public String getValueAlias()
null if not setpublic Object getValue()
null if not setCopyright © 2017. All rights reserved.