Package com._1c.g5.v8.dt.common.search
Interface IBorderedSearcher<TElement>
- Type Parameters:
TElement- type of collection elements
- All Superinterfaces:
ISearcher<TElement>
- All Known Implementing Classes:
BorderedSearcher,NodeSearcher
Represents searcher allowing narrowing searching to interval.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisInBorders(TElement element) Checks if given element complies with current borders restrictions.voidResets search borders to initial input.voidsetSearchBorders(TElement from, TElement to) Narrows search borders of given collection to elements contained betweenfromandtoinclusively.Methods inherited from interface com._1c.g5.v8.dt.common.search.ISearcher
canRepositionTo, canSearch, canSearchNext, canSearchPrev, getElementType, getFilterData, init, repositionTo, repositionToNextElement, repositionToPrevElement, repositionToTheBeginning, repositionToTheEnd, resetSearch, search, searchBack, setFilterData
-
Method Details
-
setSearchBorders
Narrows search borders of given collection to elements contained betweenfromandtoinclusively. Position of current element is moved right beforefromargument. Elements must be present in the collection search is performed in. When empty interval is needed, both parameters must benull.- Parameters:
from- the starting border of collection which must be followed by or same asto, can benullto- the end border of collection which must be preceded by or same asfrom, can benull
-
resetSearchBorders
void resetSearchBorders()Resets search borders to initial input. Position of current element is moved to the beginning of data. -
isInBorders
Checks if given element complies with current borders restrictions.- Parameters:
element- element to check borders for, cannot benull- Returns:
trueif element complies with borders,falseotherwise or not present in collection
-