Class SingularPredicate
- java.lang.Object
-
- org.sonar.iac.docker.checks.utils.command.SingularPredicate
-
- All Implemented Interfaces:
CommandPredicate
public class SingularPredicate extends Object implements CommandPredicate
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.sonar.iac.docker.checks.utils.command.CommandPredicate
CommandPredicate.Type
-
-
Constructor Summary
Constructors Constructor Description SingularPredicate(Predicate<String> predicate, CommandPredicate.Type type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SingularPredicateequalMatch(String string)booleanhasType(CommandPredicate.Type... types)voidmatch(PredicateContext context)
-
-
-
Constructor Detail
-
SingularPredicate
public SingularPredicate(Predicate<String> predicate, CommandPredicate.Type type)
-
-
Method Detail
-
equalMatch
public static SingularPredicate equalMatch(String string)
-
hasType
public boolean hasType(CommandPredicate.Type... types)
- Specified by:
hasTypein interfaceCommandPredicate
-
match
public void match(PredicateContext context)
- Specified by:
matchin interfaceCommandPredicate
-
-