Class SearchMatchResult.DefaultResult
java.lang.Object
org.springframework.shell.support.search.SearchMatchResult.DefaultResult
- All Implemented Interfaces:
SearchMatchResult
- Enclosing interface:
- SearchMatchResult
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.shell.support.search.SearchMatchResult
SearchMatchResult.DefaultResult
-
Method Summary
Modifier and TypeMethodDescriptionGetSearchMatchAlgorithm
handling a search.int
getEnd()
Get end of a match.int[]
Get positions of a match.int
getScore()
Get score of a match.int
getStart()
Get start of a match.
-
Method Details
-
getStart
public int getStart()Description copied from interface:SearchMatchResult
Get start of a match.- Specified by:
getStart
in interfaceSearchMatchResult
- Returns:
- a start of a match
-
getEnd
public int getEnd()Description copied from interface:SearchMatchResult
Get end of a match.- Specified by:
getEnd
in interfaceSearchMatchResult
- Returns:
- a end of a matchh
-
getScore
public int getScore()Description copied from interface:SearchMatchResult
Get score of a match.- Specified by:
getScore
in interfaceSearchMatchResult
- Returns:
- a score of a match
-
getPositions
public int[] getPositions()Description copied from interface:SearchMatchResult
Get positions of a match.- Specified by:
getPositions
in interfaceSearchMatchResult
- Returns:
- a positions of a match
-
getAlgorithm
Description copied from interface:SearchMatchResult
GetSearchMatchAlgorithm
handling a search.- Specified by:
getAlgorithm
in interfaceSearchMatchResult
- Returns:
SearchMatchAlgorithm
handling a search
-