|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.etrice.generator.base.Indexed<T>
public class Indexed<T>
helper class to associate indices with collection items
Method Summary | ||
---|---|---|
int |
getIndex0()
|
|
int |
getIndex1()
|
|
T |
getValue()
|
|
static
|
indexed(java.lang.Iterable<T> iterable)
|
|
static
|
indexed(java.lang.Iterable<T> iterable,
int offset)
|
|
boolean |
isFirst()
|
|
boolean |
isLast()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public T getValue()
public int getIndex0()
public int getIndex1()
public boolean isFirst()
public boolean isLast()
public static <T> java.lang.Iterable<Indexed<T>> indexed(java.lang.Iterable<T> iterable)
iterable
- the initial collection of items
public static <T> java.lang.Iterable<Indexed<T>> indexed(java.lang.Iterable<T> iterable, int offset)
iterable
- the initial collection of itemsoffset
- index0 starts at offset, index1 at offset+1
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |