AreIn

See javadoc - uk.gov.gchq.koryphe.impl.predicate.AreIn

Available since Koryphe version 1.0.0

Checks if a provided collection contains all the provided input values

Examples

Are in set

Java
JSON
Full JSON
Python
final AreIn function = new AreIn(1, 2, 3);
{
  "class" : "AreIn",
  "values" : [ 1, 2, 3 ]
}
{
  "class" : "uk.gov.gchq.koryphe.impl.predicate.AreIn",
  "values" : [ 1, 2, 3 ]
}
g.AreIn( 
  values=[ 
    1, 
    2, 
    3 
  ] 
)

Input type:

java.util.Collection

Example inputs:

Input TypeInputResult
java.util.HashSet[1, 2, 3]true
java.util.HashSet[1, 2, 3, 4]false
java.util.HashSet[4, 1]false
java.util.HashSet[1, 2]true
java.util.HashSet[]true

results matching ""

    No results matching ""