Package com._1c.g5.v8.dt.common.search
Class BorderedSearcher<TElement>
java.lang.Object
com._1c.g5.v8.dt.common.search.Searcher<TElement,IBorderedCursor<TElement>>
com._1c.g5.v8.dt.common.search.BorderedSearcher<TElement>
- Type Parameters:
TElement- type of collection elements
- All Implemented Interfaces:
IBorderedSearcher<TElement>,ISearcher<TElement>
- Direct Known Subclasses:
NodeSearcher
public abstract class BorderedSearcher<TElement>
extends Searcher<TElement,IBorderedCursor<TElement>>
implements IBorderedSearcher<TElement>
Implementation of
IBorderedSearcher.-
Field Summary
Fields inherited from class com._1c.g5.v8.dt.common.search.Searcher
cursor, filter, filterData -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates bordered searcher with empty collection to search. -
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 class com._1c.g5.v8.dt.common.search.Searcher
canRepositionTo, canSearch, canSearchNext, canSearchPrev, getCursor, getFilter, getFilterData, getFilterToPreservePositionOf, init, repositionTo, repositionToNextElement, repositionToPrevElement, repositionToTheBeginning, repositionToTheEnd, resetSearch, search, searchBack, setFilterDataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
Constructor Details
-
BorderedSearcher
protected BorderedSearcher()Creates bordered searcher with empty collection to search.
-
-
Method Details
-
setSearchBorders
Description copied from interface:IBorderedSearcherNarrows 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.- Specified by:
setSearchBordersin interfaceIBorderedSearcher<TElement>- 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
public void resetSearchBorders()Description copied from interface:IBorderedSearcherResets search borders to initial input. Position of current element is moved to the beginning of data.- Specified by:
resetSearchBordersin interfaceIBorderedSearcher<TElement>
-
isInBorders
Description copied from interface:IBorderedSearcherChecks if given element complies with current borders restrictions.- Specified by:
isInBordersin interfaceIBorderedSearcher<TElement>- Parameters:
element- element to check borders for, cannot benull- Returns:
trueif element complies with borders,falseotherwise or not present in collection
-