public interface IndexedVisitable extends Visitable
Visitable
extension to add the option to start the visit begging from
a provided index.Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor visitor,
long firstValueIndex)
Provides each value of this container to the provided
Visitor ,
beginning from the provided index position. |
void accept(Visitor visitor, long firstValueIndex) throws BaseException
Visitor
,
beginning from the provided index position.visitor
- the visitor to apply to each value.firstValueIndex
- index of first element to be visited by the Visitor
BaseException
- if there is an error while performing the visit