Package org.moeaframework.util
Class Iterators.IndexedValue<T>
java.lang.Object
org.moeaframework.util.Iterators.IndexedValue<T>
- Type Parameters:
T
- the type of the value
- Enclosing class:
- Iterators
Associates an index to a value.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
IndexedValue
Constructs a new indexed value.- Parameters:
index
- the indexvalue
- the value
-
-
Method Details
-
getIndex
public int getIndex()Returns the index of this value.- Returns:
- the index
-
getValue
Returns the value.- Returns:
- the value
-