CollectionIntersect

See javadoc - uk.gov.gchq.koryphe.impl.binaryoperator.CollectionIntersect

Available since Koryphe version 1.6.0

Returns items common to two collections

Examples

Collection intersect

Java
JSON
Full JSON
final CollectionIntersect collectionIntersect = new CollectionIntersect();
{
  "class" : "CollectionIntersect"
}
{
  "class" : "uk.gov.gchq.koryphe.impl.binaryoperator.CollectionIntersect"
}

Input type:

java.lang.Object

Example inputs:

Input TypeInputsResult TypeResult
java.util.ArrayList[test1] and [test2, test3]java.util.ArrayList[]
java.util.ArrayList[1] and [1, 2]java.util.ArrayList[1]
java.util.ArrayList[] and [abc, cde]java.util.ArrayList[]
java.util.ArrayList[test1] and nulljava.util.ArrayList[test1]
java.util.HashSet[a, b] and [b, c]java.util.HashSet[b]

results matching ""

    No results matching ""