Package com.chemaxon.calculations.io
Interface OrderedElement<T>
-
- Type Parameters:
T
- Element typePlease note that this interface is marked with @Beta annotation, so it can be subject of incompatible changes or removal in later releases.
@Beta @PublicAPI public interface OrderedElement<T>
An arbitrary element of an ordered collection. Typical use case is to represent an input item and its index.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getIndex()
Element index.T
getValue()
Element value.
-
-
-
Method Detail
-
getIndex
int getIndex()
Element index.- Returns:
- 0-based index of the represented element
-
getValue
T getValue()
Element value.- Returns:
- Element value
-
-