Class ContainsFunction
java.lang.Object
net.thisptr.jackson.jq.internal.functions.ContainsFunction
- All Implemented Interfaces:
Function
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(Scope scope, List<Expression> args, com.fasterxml.jackson.databind.JsonNode in, Path ipath, PathOutput output, Version version) private static boolean
contains
(com.fasterxml.jackson.databind.JsonNode needle, com.fasterxml.jackson.databind.JsonNode haystack)
-
Field Details
-
COMPARATOR
-
-
Constructor Details
-
ContainsFunction
public ContainsFunction()
-
-
Method Details
-
apply
public void apply(Scope scope, List<Expression> args, com.fasterxml.jackson.databind.JsonNode in, Path ipath, PathOutput output, Version version) throws JsonQueryException - Specified by:
apply
in interfaceFunction
- Throws:
JsonQueryException
-
contains
private static boolean contains(com.fasterxml.jackson.databind.JsonNode needle, com.fasterxml.jackson.databind.JsonNode haystack)
-