Class Iterators.IndexedValue<T>

java.lang.Object
org.moeaframework.util.Iterators.IndexedValue<T>
Type Parameters:
T - the type of the value
Enclosing class:
Iterators

public static class Iterators.IndexedValue<T> extends Object
Associates an index to a value.
  • Constructor Details

    • IndexedValue

      public IndexedValue(int index, T value)
      Constructs a new indexed value.
      Parameters:
      index - the index
      value - the value
  • Method Details

    • getIndex

      public int getIndex()
      Returns the index of this value.
      Returns:
      the index
    • getValue

      public T getValue()
      Returns the value.
      Returns:
      the value