Interface OptionalOneBasedIndexHolder
- All Known Subinterfaces:
FluentMutableOptionalOneBasedIndexHolder<H>, MutableOptionalOneBasedIndexHolder
public interface OptionalOneBasedIndexHolder
A
OptionalOneBasedIndexHolder can have a one-based index.- Author:
- Silvan Wyss
-
Method Summary
-
Method Details
-
getOneBasedIndex
int getOneBasedIndex()- Returns:
- the one-based index of the current
OptionalOneBasedIndexHolder - Throws:
RuntimeException- if the currentOptionalOneBasedIndexHolderdoes not have a one-based index
-
hasOneBasedIndex
boolean hasOneBasedIndex()- Returns:
- true if the current
OptionalOneBasedIndexHolderhas a one-based index, false otherwise
-