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 TypeMethodDescriptionboolean
isInBorders
(TElement element) Checks if given element complies with current borders restrictions.void
Resets search borders to initial input.void
setSearchBorders
(TElement from, TElement to) Narrows search borders of given collection to elements contained betweenfrom
andto
inclusively.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 betweenfrom
andto
inclusively. Position of current element is moved right beforefrom
argument. 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 benull
to
- 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:
true
if element complies with borders,false
otherwise or not present in collection
-