Package jetbrains.buildServer.util
Class StringMatcherHelper
- java.lang.Object
-
- jetbrains.buildServer.util.StringMatcherHelper
-
- All Implemented Interfaces:
StringMatcher
public class StringMatcherHelper extends Object implements StringMatcher
- Author:
- Yegor.Yarko Date: 17/09/2018
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
StringMatcherHelper.Function<T,R>
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.util.StringMatcher
StringMatcher.MatchResult
-
-
Constructor Summary
Constructors Constructor Description StringMatcherHelper(boolean hasPattern, StringMatcherHelper.Function<String,StringMatcher.MatchResult> matchFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasPattern()
StringMatcher.MatchResult
match(String text)
-
-
-
Constructor Detail
-
StringMatcherHelper
public StringMatcherHelper(boolean hasPattern, @NotNull StringMatcherHelper.Function<String,StringMatcher.MatchResult> matchFunction)
-
-
Method Detail
-
match
@NotNull public StringMatcher.MatchResult match(@NotNull String text)
- Specified by:
match
in interfaceStringMatcher
-
hasPattern
public boolean hasPattern()
- Specified by:
hasPattern
in interfaceStringMatcher
-
-