Class ContainsFunction
- java.lang.Object
-
- net.thisptr.jackson.jq.internal.functions.ContainsFunction
-
- All Implemented Interfaces:
Function
@AutoService(Function.class) public class ContainsFunction extends java.lang.Object implements Function
-
-
Field Summary
Fields Modifier and Type Field Description private static JsonNodeComparator
COMPARATOR
-
Constructor Summary
Constructors Constructor Description ContainsFunction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(Scope scope, java.util.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 Detail
-
COMPARATOR
private static final JsonNodeComparator COMPARATOR
-
-
Method Detail
-
apply
public void apply(Scope scope, java.util.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)
-
-