containsAny

public static boolean containsAny<T>(List<T> list, List<T> other)

Checks if a list contains any element of another list.

Return

true If the list contains any element of the other list

Parameters

list

The list to check

other

The list to check for

<T>

The type of the lists