Class ContainsConstraint
java.lang.Object
io.fluxcapacitor.common.api.search.constraints.PathConstraint
io.fluxcapacitor.common.api.search.constraints.ContainsConstraint
- All Implemented Interfaces:
Constraint
public class ContainsConstraint extends PathConstraint
-
Field Summary
Fields inherited from interface io.fluxcapacitor.common.api.search.Constraint
noOp -
Constructor Summary
Constructors Constructor Description ContainsConstraint(String contains, String path) -
Method Summary
Modifier and Type Method Description static Constraintcontains(@NonNull String phrase, String... paths)protected booleanmatches(Document.Entry entry)Methods inherited from class io.fluxcapacitor.common.api.search.constraints.PathConstraint
checkPathBeforeEntry, getPath, hasPathConstraint, matchesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.fluxcapacitor.common.api.search.Constraint
and, decompose, or
-
Constructor Details
-
ContainsConstraint
@ConstructorProperties({"contains","path"}) public ContainsConstraint(String contains, String path)
-
-
Method Details
-
contains
-
matches
- Specified by:
matchesin classPathConstraint
-