public interface ISearchIterator extends Iterator<ISearchResultItem>
Modifier and Type | Method and Description |
---|---|
ISearchResultItem |
current() |
Optional<ISearchResultItem> |
getNextOrFromStart()
Resets and restarts the iteration if the iterator reaches the end of the list of results
|
boolean |
hasPrevious() |
boolean |
isReplaceSupported()
Checks if replacement is allowed
|
ISearchResultItem |
previous() |
void |
replace(String replacement)
Replaces the value of the current element by the given value or removes the element if it doesn't match the search conditions
|
void |
replaceRemaining(String replacement)
Replaces the values of the elements following the current one by the given value.
|
void |
reset()
Restarts the iteration
|
forEachRemaining, hasNext, next, remove
Optional<ISearchResultItem> getNextOrFromStart()
ISearchResultItem current()
boolean hasPrevious()
ISearchResultItem previous()
void reset()
void replaceRemaining(String replacement)
Usage of this method is allowed only when the ISearchParams.SearchTarget
is set to FORMULA
replacement
- the value for the replacementUnsupportedOperationException
- if replace is not supportedboolean isReplaceSupported()
void replace(String replacement)
The use of this method is allowed only when the ISearchParams.SearchTarget
is set to FORMULA
replacement
- the value for the replacementUnsupportedOperationException
- if replace is not supportedCopyright © 2024. All rights reserved.