Interface OrderedElement<T>

Type Parameters:
T - Element type

@Beta @PublicAPI @Deprecated(forRemoval=true) @SubjectToRemoval(date=JAN_01_2025) public interface OrderedElement<T>
Deprecated, for removal: This API element is subject to removal in a future version.
Will be removed without replacement.
An arbitrary element of an ordered collection.

Typical use case is to represent an input item and its index.

  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Element index.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Element value.
  • Method Details

    • getIndex

      int getIndex()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Element index.
      Returns:
      0-based index of the represented element
    • getValue

      T getValue()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Element value.
      Returns:
      Element value