Class SearchResult<T extends com.hello2morrow.sonargraph.core.api.model.ElementAccess<? extends com.hello2morrow.sonargraph.core.model.element.NamedElement>>
java.lang.Object
com.hello2morrow.sonargraph.core.api.script.model.SearchResult<T>
- Type Parameters:
T
- Class of access objects contained in the result
public final class SearchResult<T extends com.hello2morrow.sonargraph.core.api.model.ElementAccess<? extends com.hello2morrow.sonargraph.core.model.element.NamedElement>>
extends Object
This class is used to return the result of a search operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Returns all results of the search operation.Returns the first item returned by the search operation.int
size()
Number of items in the search result.
-
Constructor Details
-
SearchResult
public SearchResult()
-
-
Method Details
-
addMatch
-
size
public int size()Number of items in the search result.- Returns:
- Number of items in the search result.
-
getFirstMatch
Returns the first item returned by the search operation.- Returns:
- Returns the first item returned by the search operation.
-
getAllMatches
Returns all results of the search operation.- Returns:
- Returns all results of the search operation.
-